/* ==========================================================================
   Design System — Fragachan Immigration Law
   ========================================================================== */

:root {
  --primary-green: #1B6B3A;
  --primary-green-dark: #0F4D28;
  --primary-green-light: #209D50;
  --cream: #E1DFD9;
  --cream-light: #F5F3EF;
  --white: #FFFFFF;
  --charcoal: #1A1A1A;
  --dark-gray: #333333;
  --medium-gray: #666666;
  --gold-accent: #C4A35A;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --font-heading: "Libre Baskerville", Georgia, serif;
  --font-body: "Almarai", "Inter", sans-serif;
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-header: 0 2px 20px rgba(0, 0, 0, 0.05);
  --radius-card: 8px;
  --radius-pill: 50px;
  --transition: 0.3s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: 15px;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-green);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  z-index: 10000;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.text-left {
  text-align: left;
}

.text-white {
  color: var(--white);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  justify-content: center;
}

.btn-primary {
  background: var(--primary-green);
  color: var(--white);
  border-color: var(--primary-green);
}

.btn-primary:hover {
  background: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.625rem 1.5rem;
  font-size: 13px;
}

.btn-full {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid rgba(27, 107, 58, 0.1);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-header);
}

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

.logo {
  flex-shrink: 0;
}

.logo-desktop {
  height: 50px;
  width: auto;
}

.logo-mobile {
  display: none;
  height: 40px;
  width: auto;
}

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

.nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--charcoal);
  position: relative;
  padding: 0.25rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-green);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-green);
}

.nav-link.active::after,
.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.lang-toggle {
  display: flex;
  border: 1px solid var(--medium-gray);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.lang-btn {
  padding: 0.3rem 0.75rem;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--medium-gray);
  transition: all var(--transition);
}

.lang-btn.active {
  background: var(--primary-green);
  color: var(--white);
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary-green);
}

.header-phone:hover {
  color: var(--primary-green-dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--charcoal);
  transition: all var(--transition);
}

.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
  background: var(--white);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
  background: var(--white);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--primary-green-dark);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.mobile-nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--gold-accent);
}

.mobile-nav-phone {
  font-size: 1.125rem;
  color: var(--gold-accent);
  margin-top: 1rem;
}

.mobile-nav-cta {
  margin-top: 0.5rem;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: url('images/Gemini_Generated_Image_r70vlir70vlir70v.png') center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 77, 40, 0.75), rgba(0, 0, 0, 0.55));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 750px;
  padding: 0 var(--space-sm);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gold-accent);
  margin-bottom: var(--space-md);
}

.eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 1px;
  background: var(--gold-accent);
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: var(--space-sm);
}

.hero-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 600px;
  margin: 0 auto var(--space-md);
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
  opacity: 0.7;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-8px);
  }
  60% {
    transform: translateX(-50%) translateY(-4px);
  }
}

/* ==========================================================================
   Trust Bar
   ========================================================================== */

.trust-bar {
  background: var(--white);
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(196, 163, 90, 0.2);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-gray);
}

.trust-icon {
  color: var(--primary-green);
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 24px;
  background: var(--gold-accent);
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: var(--space-xl) 0;
}

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

.section-cream-light {
  background: var(--cream-light);
}

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

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

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 400;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: var(--space-sm);
  line-height: 1.25;
}

.section-subtext {
  font-size: 16px;
  color: var(--medium-gray);
  text-align: center;
  max-width: 650px;
  margin: 0 auto var(--space-lg);
  line-height: 1.8;
}

/* ==========================================================================
   Practice Area Cards
   ========================================================================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-icon {
  color: var(--primary-green);
  margin-bottom: var(--space-sm);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 15px;
  color: var(--medium-gray);
  line-height: 1.75;
  margin-bottom: var(--space-sm);
}

.card-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-green);
  transition: color var(--transition);
}

.card-link:hover {
  color: var(--primary-green-dark);
}

/* ==========================================================================
   Two Column Layouts
   ========================================================================== */

.two-col {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-lg);
  align-items: center;
}

.two-col-reverse {
  grid-template-columns: 3fr 2fr;
}

.attorney-photo {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: 100%;
  object-fit: cover;
}

.attorney-subtitle {
  font-size: 17px;
  color: var(--medium-gray);
  font-style: italic;
  margin-bottom: var(--space-sm);
}

.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold-accent);
  margin-bottom: var(--space-md);
}

.body-text {
  font-size: 16px;
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.bold-statement {
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--charcoal);
  line-height: 1.6;
}

.firm-photo {
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Why Choose Us (Features)
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  color: var(--white);
  margin-bottom: var(--space-sm);
}

.feature-gold-line {
  width: 40px;
  height: 2px;
  background: var(--gold-accent);
  margin: 0 auto var(--space-sm);
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.feature-text {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.75;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-size: 64px;
  color: var(--gold-accent);
  line-height: 1;
  margin-bottom: -0.5rem;
}

.testimonial-text {
  font-size: 15px;
  font-style: italic;
  color: var(--dark-gray);
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.testimonial-author {
  font-size: 14px;
  font-weight: 600;
  color: var(--medium-gray);
}

.testimonial-disclaimer {
  font-size: 13px;
  color: var(--medium-gray);
  text-align: center;
  font-style: italic;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.section-contact {
  overflow: hidden;
}

.contact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.contact-info {
  background: var(--primary-green-dark);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
}

.contact-info-inner {
  max-width: 480px;
}

.contact-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: var(--space-md);
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.contact-detail svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-accent);
}

.contact-detail a {
  color: rgba(255, 255, 255, 0.9);
}

.contact-detail a:hover {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: background var(--transition);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.2);
}

.contact-form-wrap {
  background: var(--cream-light);
  padding: var(--space-xl) var(--space-lg);
  display: flex;
  align-items: center;
}

.contact-form-inner {
  max-width: 480px;
  width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark-gray);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--charcoal);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 3px rgba(27, 107, 58, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #c0392b;
}

.form-group textarea {
  resize: vertical;
}

.form-disclaimer {
  font-size: 13px;
  color: var(--medium-gray);
  text-align: center;
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ==========================================================================
   Map
   ========================================================================== */

.map-section {
  line-height: 0;
}

.map-section iframe {
  width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding-bottom: var(--space-lg);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: var(--space-sm);
  filter: brightness(0) invert(1);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-social {
  display: flex;
  gap: 0.75rem;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: var(--space-sm);
}

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

.footer-links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer-contact li {
  font-size: 14px;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
  color: var(--white);
}

.footer-cta-text {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.footer-bottom {
  border-top: 1px solid var(--gold-accent);
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-inner a {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom-inner a:hover {
  color: var(--white);
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive — Tablet (640px–1024px)
   ========================================================================== */

@media (max-width: 1024px) {
  .section {
    padding: var(--space-lg) 0;
  }

  .header-phone {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero-heading {
    font-size: 42px;
  }

  .section-heading {
    font-size: 34px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid .feature:last-child {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .testimonials-slider {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-slider .testimonial-card:last-child {
    grid-column: 1 / -1;
    max-width: 500px;
    margin: 0 auto;
  }

  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: var(--space-lg) var(--space-md);
  }

  .contact-form-wrap {
    padding: var(--space-lg) var(--space-md);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Responsive — Mobile (<640px)
   ========================================================================== */

@media (max-width: 639px) {
  .section {
    padding: var(--space-lg) 0;
  }

  .logo-desktop {
    display: none;
  }

  .logo-mobile {
    display: block;
  }

  .header-inner {
    height: 64px;
  }

  .lang-toggle {
    display: none;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-heading {
    font-size: 34px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-buttons .btn {
    width: 100%;
  }

  .trust-items {
    flex-direction: column;
    gap: 1rem;
  }

  .trust-divider {
    display: none;
  }

  .section-heading {
    font-size: 28px;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-grid .feature:last-child {
    max-width: none;
  }

  .testimonials-slider {
    grid-template-columns: 1fr;
  }

  .testimonials-slider .testimonial-card:last-child {
    max-width: none;
  }

  .two-col,
  .two-col-reverse {
    grid-template-columns: 1fr;
  }

  .two-col-reverse .col-text {
    order: 1;
  }

  .two-col-reverse .col-image {
    order: 2;
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-info {
    padding: var(--space-lg) var(--space-sm);
  }

  .contact-form-wrap {
    padding: var(--space-lg) var(--space-sm);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }
}
