/* ==========================================================================
   Nusratty Inc. — local design/layout mockup
   Design tokens extracted from the live site's theme:
     navy   hsl(211, 87%, 25%)  (site "black" theme)
     cream  hsl(46, 96%, 78%)   (site "white" theme)
     orange hsl(15, 98%, 67%)   (accent / buttons)
   Fonts: Lato (headings + body), Arvo (buttons), via Google Fonts.
   ========================================================================== */

:root {
  --navy: hsl(211.35, 87.4%, 24.9%);
  --cream: hsl(46.24, 96.46%, 77.84%);
  --orange: hsl(15.46, 97.6%, 67.25%);
  --input-bg: #b9c1cc;
  --overlay: rgba(0, 0, 0, 0.15);
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
  --font-button: 'Arvo', Georgia, serif;
  --content-width: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--cream);
}

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

a {
  color: inherit;
}

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --------------------------------------------------------------------------
   Header — transparent over the hero on the homepage, solid navy on subpages
   -------------------------------------------------------------------------- */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.5rem 2.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.site-header--solid {
  position: static;
  background: var(--navy);
  align-items: center;
}

.site-logo {
  flex: 0 0 auto;
}

.site-logo img {
  width: 160px;
  height: auto;
}

.site-logo .logo-text {
  font-family: var(--font-button);
  font-size: 1.5rem;
  letter-spacing: 0.18em;
  color: var(--cream);
  text-decoration: none;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 0.75rem;
}

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 1.05rem;
}

.site-nav a:hover {
  opacity: 0.8;
}

.btn {
  display: inline-block;
  font-family: var(--font-button);
  font-size: 1rem;
  color: var(--navy);
  background: var(--orange);
  padding: 1.05em 1.9em;
  border: 0;
  border-radius: 999px;
  text-decoration: none !important;
  cursor: pointer;
  line-height: 1;
}

.btn:hover {
  opacity: 0.9;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--cream);
  margin: 5px 0;
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Sections / themes
   -------------------------------------------------------------------------- */

.theme-cream {
  background: var(--cream);
  color: var(--navy);
}

.theme-navy {
  background: var(--navy);
  color: var(--cream);
}

section {
  padding: 5rem 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 0;
  /* Gradient stands in for the hero photo until fetch-assets runs */
  background:
    linear-gradient(var(--overlay), var(--overlay)),
    url('/images/bay-area.jpg') center 4% / cover no-repeat,
    linear-gradient(180deg, #3f6fa3 0%, #d99a63 55%, #16324f 100%);
  color: var(--cream);
}

.hero .container {
  width: 100%;
  padding-bottom: 8rem;
}

.hero h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(3rem, 7.5vw, 6.75rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--cream);
}

/* --------------------------------------------------------------------------
   Intro + two-column practice/experience
   -------------------------------------------------------------------------- */

.intro p {
  max-width: 68rem;
  margin: 0 auto 3.5rem;
  font-size: 1.2rem;
}

.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  max-width: 72rem;
  margin: 0 auto;
}

.columns h2 {
  font-size: 2.1rem;
  font-weight: 600;
  margin: 0 0 1.5rem;
}

.columns ul {
  margin: 0;
  padding-left: 1.4rem;
}

.columns li {
  margin-bottom: 1.15rem;
  font-size: 1.02rem;
}

.columns li > strong {
  display: block;
}

.practice-list li em {
  font-style: italic;
}

.practice-list h3 {
  font-size: 1.02rem;
  font-weight: 700;
  margin: 0;
}

.practice-list h3 a {
  color: inherit;
  text-decoration: none;
}

.practice-list h3 a:hover {
  text-decoration: underline;
}

.highlight-list li strong {
  display: inline;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */

.about .container {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 72rem;
}

.portrait {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  object-fit: cover;
}

.portrait-fallback {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: #cfc39a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-button);
  font-size: 5rem;
  color: var(--navy);
}

.about h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(3rem, 6vw, 5.25rem);
  line-height: 1.02;
  font-weight: 700;
}

.about p {
  margin: 0 0 1.4rem;
  font-size: 1.15rem;
}

/* --------------------------------------------------------------------------
   Testimonials
   -------------------------------------------------------------------------- */

.testimonials h2 {
  text-align: center;
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 700;
  margin: 0 0 3.5rem;
}

.testimonials blockquote {
  max-width: 48rem;
  margin: 0 auto 3rem;
  font-size: 1.15rem;
}

.testimonials blockquote p {
  margin: 0 0 0.5rem;
}

.testimonials cite {
  font-style: italic;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Contact
   -------------------------------------------------------------------------- */

.contact h1,
.contact h2 {
  text-align: center;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  margin: 0 0 3rem;
}

.contact h1 {
  margin-bottom: 1.5rem;
}

.contact form {
  max-width: 46rem;
  margin: 0 auto;
}

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

.field {
  margin-bottom: 1.6rem;
}

.field-group-label {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  display: block;
}

.field label {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.field .required {
  color: #c8cdd6;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--input-bg);
  border: 0;
  border-radius: 2px;
  padding: 0.7rem 0.8rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: #1c2733;
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
  min-height: 1.5em;
}

/* --------------------------------------------------------------------------
   Breadcrumbs + content pages (services, about, FAQ)
   -------------------------------------------------------------------------- */

.breadcrumbs {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  opacity: 0.6;
}

.breadcrumbs a {
  color: inherit;
}

.page-content {
  padding: 1rem 0 5rem;
}

.page-content .container {
  max-width: 56rem;
}

.page-content h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}

.page-content ul {
  padding-left: 1.4rem;
}

.page-content li {
  margin-bottom: 0.5rem;
}

.page-content .cta {
  margin-top: 2.5rem;
}

.service-index {
  list-style: none;
  padding-left: 0 !important;
}

.service-index li {
  margin-bottom: 1.8rem;
}

.service-index h2 {
  font-size: 1.45rem;
  margin: 0 0 0.3rem;
}

.service-index h2 a {
  color: inherit;
}

.service-index p {
  margin: 0;
}

.faq-item {
  margin-bottom: 2.2rem;
}

.faq-item h2 {
  font-size: 1.3rem;
  margin: 0 0 0.5rem;
}

.portrait--small {
  max-width: 220px;
  float: right;
  margin: 0 0 1.5rem 2rem;
}

@media (max-width: 700px) {
  .portrait--small {
    float: none;
    margin: 0 auto 1.5rem;
  }
}

.contact-intro {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 46rem;
}

.contact .breadcrumbs {
  text-align: center;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.page-title {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-title h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.legal-body p {
  max-width: 56rem;
  margin: 0 auto 1.4rem;
}

.legal-body .updated {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--navy);
  color: var(--cream);
  border-top: 1px solid rgba(253, 228, 144, 0.35);
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.site-footer img {
  width: 260px;
  margin: 0 auto 1.5rem;
}

.site-footer .logo-text {
  font-family: var(--font-button);
  font-size: 2rem;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: var(--cream);
  text-decoration: underline;
}

.footer-links {
  font-size: 1.05rem;
  margin: 0.6rem 0;
}

.footer-links--services {
  font-size: 0.9rem;
  opacity: 0.85;
}

.footer-links--legal {
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .columns,
  .about .container,
  .field-row {
    grid-template-columns: 1fr;
  }

  .about .container {
    gap: 2.5rem;
  }

  .portrait,
  .portrait-fallback {
    max-width: 320px;
    margin: 0 auto;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    flex-direction: column;
    align-items: flex-end;
    gap: 1.25rem;
    background: var(--navy);
    padding: 1.5rem 2rem;
    border-radius: 6px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-header--solid .site-nav {
    position: absolute;
    right: 1.5rem;
  }
}
