/* === APG - Atlantic Property Guardian === */
/* Clean, professional, trust-oriented design */

:root {
  --navy: #1a2a3a;
  --navy-light: #2a3f55;
  --gold: #c8a44e;
  --gold-light: #dfc070;
  --sand: #f5f0e8;
  --white: #ffffff;
  --gray-100: #f8f7f5;
  --gray-200: #e8e6e2;
  --gray-500: #8a8680;
  --gray-700: #4a4640;
  --gray-900: #1a1816;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1140px;
  --transition: 0.3s ease;
}

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-900);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

h1 { font-size: 2.75rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.5rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p {
  margin-bottom: 1rem;
  color: var(--gray-700);
}

/* === CONTAINER === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* === HEADER / NAV === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(26, 42, 58, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(200, 164, 78, 0.15);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.03em;
}

.logo span {
  color: var(--gold);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  border-bottom-color: var(--gold);
}

.lang-switch {
  display: flex;
  gap: 0.5rem;
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switch a {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  transition: all var(--transition);
}

.lang-switch a:hover {
  color: var(--white);
}

.lang-switch a.active {
  color: var(--gold);
  background: rgba(200, 164, 78, 0.1);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: var(--transition);
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: 72px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.82) 0%, rgba(42, 63, 85, 0.7) 50%, rgba(58, 85, 112, 0.65) 100%);
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding: 0.4rem 1rem;
  border: 1px solid rgba(200, 164, 78, 0.3);
  border-radius: 2px;
}

.hero h1 {
  font-size: 3.2rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.8;
  max-width: 560px;
}

.hero .btn {
  margin-top: 2rem;
}

/* === HERO SMALL (subpages) === */
.hero-small {
  position: relative;
  padding: 140px 0 80px;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero-small::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 42, 58, 0.85) 0%, rgba(42, 63, 85, 0.75) 100%);
}

.hero-small .container {
  position: relative;
  z-index: 1;
}

.hero-small h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hero-small p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* === BUTTONS === */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(200, 164, 78, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--gold);
  border: 1.5px solid var(--gold);
}

.btn-outline:hover {
  background: var(--gold);
  color: var(--navy);
}

/* === SECTIONS === */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--gray-100);
}

.section-sand {
  background: var(--sand);
}

.section-dark {
  background: var(--navy);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-header .label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.05rem;
}

/* === GRID === */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* === CARDS === */
.card {
  background: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 6px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(200, 164, 78, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 78, 0.1);
  color: var(--gold);
  border-radius: 8px;
  margin-bottom: 1.25rem;
  font-size: 1.4rem;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.card p {
  font-size: 0.95rem;
}

/* === SERVICE PHASE === */
.phase {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--gray-200);
}

.phase:last-child {
  border-bottom: none;
}

.phase-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.phase h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.phase p {
  margin-bottom: 1rem;
}

.phase ul {
  display: grid;
  gap: 0.5rem;
}

.phase ul li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--gray-700);
}

.phase ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

/* === PRINCIPLES LIST === */
.principles {
  display: grid;
  gap: 1.25rem;
  max-width: 640px;
}

.principles li {
  position: relative;
  padding-left: 2rem;
  font-size: 1.05rem;
  color: var(--gray-700);
  line-height: 1.6;
}

.principles li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

/* === BENEFITS === */
.benefit-item {
  text-align: center;
  padding: 2rem 1.5rem;
}

.benefit-item .number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.benefit-item h4 {
  margin-bottom: 0.5rem;
}

.benefit-item p {
  font-size: 0.9rem;
}

/* === IMAGE + TEXT LAYOUT === */
.img-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.img-text.reverse {
  direction: rtl;
}

.img-text.reverse > * {
  direction: ltr;
}

.img-text-img {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.img-text-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.img-text-img:hover img {
  transform: scale(1.03);
}

/* === CTA SECTION === */
.cta-section {
  position: relative;
  padding: 5rem 0;
  background: var(--navy);
  background-size: cover;
  background-position: center;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 42, 58, 0.88);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* === CONTACT FORM === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  padding: 2.5rem;
  background: var(--navy);
  border-radius: 6px;
  color: var(--white);
}

.contact-info h3 {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-info-item .icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(200, 164, 78, 0.15);
  color: var(--gold);
  border-radius: 6px;
  flex-shrink: 0;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-item strong {
  color: var(--white);
  display: block;
  margin-bottom: 0.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 4px;
  background: var(--white);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

/* === FOOTER === */
.footer {
  background: var(--gray-900);
  padding: 3rem 0 1.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer ul li a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* === LANG LANDING === */
.lang-landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, #3a5570 100%);
  text-align: center;
}

.lang-landing h1 {
  color: var(--white);
  font-size: 2.75rem;
  margin-bottom: 0.5rem;
}

.lang-landing .tagline {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.lang-options {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.lang-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 2rem 2.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition);
  min-width: 160px;
}

.lang-option:hover {
  background: rgba(200, 164, 78, 0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.lang-option .flag {
  font-size: 2.5rem;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2.25rem; }
  .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: block; }

  .nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(200, 164, 78, 0.15);
  }

  .nav.open .lang-switch {
    margin-left: 0;
    padding-left: 0;
    padding-top: 1rem;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .img-text { grid-template-columns: 1fr; }
  .img-text.reverse { direction: ltr; }
  .img-text-img img { height: 260px; }

  .phase {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .lang-options {
    flex-direction: column;
    align-items: center;
  }
}
