/* Brand palette: change these values to customize the entire template. */
:root {
  --ink: #58534b;
  --muted: #8c857b;
  --canvas: #e9e8e5;
  --surface: #f6f5f2;
  --accent: #363228;
  --accent-dark: #221f1a;
  --sage: #ddd9d1;
  --line: #d9d6d0;
  --dark: #241f1b;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Base and accessibility */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; max-width: 100%; }
p { line-height: 1.7; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; top: -70px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--ink); color: #fff; }
.skip-link:focus { top: 12px; }
.eyebrow { margin: 0 0 26px; color: var(--accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .16em; line-height: 1.4; }
h1, h2, h3 { margin: 0; letter-spacing: -.045em; line-height: 1.09; }
h1 em, h2 em { color: var(--accent); font-style: normal; }

/* Sticky navigation */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--canvas); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 1rem; font-weight: 800; letter-spacing: -.035em; white-space: nowrap; }
.brand img { border-radius: 11px; }
.brand .brand-logo { width: 180px; height: auto; border-radius: 0; }
.footer-brand { display: inline-flex; align-items: center; padding: 10px 18px; background: var(--canvas); border-radius: 10px; }
.footer-brand .brand-logo { width: 150px; }
.site-nav { display: flex; align-items: center; gap: clamp(22px, 3vw, 42px); }
.site-nav a { font-size: .89rem; font-weight: 650; transition: color .2s ease; }
.site-nav a:hover, .text-link:hover, .back-top:hover { color: var(--accent-dark); }
.site-nav .nav-contact { border: 1px solid var(--ink); border-radius: 999px; padding: 10px 19px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.site-nav .nav-contact:hover { color: white; background: var(--ink); border-color: var(--ink); }
.nav-contact span { margin-left: 11px; }
.menu-toggle { display: none; }

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-layout { min-height: 660px; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 55px; padding-block: 80px 90px; }
.hero-content { position: relative; z-index: 1; }
.eyebrow-line { display: inline-block; width: 24px; height: 1px; margin: 0 11px 4px 0; background: currentColor; }
.hero h1 { max-width: 670px; font-size: clamp(3.35rem, 6vw, 6.2rem); font-weight: 760; }
.hero-lead { max-width: 490px; margin: 28px 0 35px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.17rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 32px; min-height: 54px; padding: 15px 25px; border-radius: 6px; font-weight: 750; transition: transform .2s ease, background .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(36, 31, 27, .14); }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: var(--accent-dark); }
.text-link { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 4px; font-size: .91rem; font-weight: 750; transition: color .2s ease; }
.text-link span { margin-left: 9px; }
.template-note { margin: 55px 0 0; color: var(--muted); font-size: .73rem; }
.hero-art { position: relative; display: grid; place-items: center; width: min(100%, 460px); margin-left: auto; border-radius: 10px; overflow: hidden; }
.hero-photo { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; }

/* Services */
.section { padding-block: 115px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 43px; }
.section-heading h2, .about-content h2, .contact-section h2 { font-size: clamp(2.55rem, 4.5vw, 4.4rem); font-weight: 750; }
.section-heading > p { max-width: 340px; margin: 0 0 5px; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.service-card { min-height: 300px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.service-card:hover { transform: translateY(-5px); border-color: #c9c3ba; box-shadow: 0 18px 35px rgba(36,31,27,.08); }
.card-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 71px; }
.card-number { color: var(--muted); font-size: .77rem; font-weight: 700; }
.card-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sage); color: var(--dark); font-size: 1.45rem; }
.service-card h3 { margin-bottom: 13px; font-size: 1.47rem; }
.service-card p { max-width: 290px; margin: 0; color: var(--muted); font-size: .91rem; }

/* About */
.about-section { background: var(--canvas); }
.about-layout { display: grid; grid-template-columns: .9fr 1fr; align-items: center; gap: clamp(48px, 9vw, 130px); }
.about-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.about-logo { position: relative; z-index: 1; width: 62%; height: auto; }
.about-content h2 { max-width: 520px; margin-bottom: 27px; }
.about-content > p:not(.eyebrow) { max-width: 520px; color: var(--muted); }
.about-content .text-link { margin-top: 19px; }

/* Contact and footer */
.contact-section { background: var(--dark); color: #f7f4ee; }
.contact-section .eyebrow { color: #cfc9bf; }
.contact-layout { display: grid; grid-template-columns: 1fr .75fr; gap: clamp(55px, 10vw, 140px); }
.contact-section h2 { max-width: 610px; }
.contact-intro { max-width: 470px; margin: 29px 0 0; color: #c7c0b6; }
.contact-details { padding-top: 18px; }
.contact-item { padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-item:first-child { padding-top: 0; }
.contact-label { display: block; margin-bottom: 10px; color: #c7c0b6; font-size: .7rem; font-weight: 700; letter-spacing: .16em; }
.contact-item a { display: flex; justify-content: space-between; gap: 12px; font-size: clamp(1.15rem, 2.1vw, 1.55rem); font-weight: 600; letter-spacing: -.03em; overflow-wrap: anywhere; transition: color .2s ease; }
.contact-item a:hover { color: #cfc9bf; }
.contact-warning { margin: 20px 0 0; color: #c7c0b6; font-size: .76rem; }
.site-footer { background: #211d19; color: #cdc7bd; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 105px; }
.footer-inner p { font-size: .78rem; color: #9b958c; }
.back-top { white-space: nowrap; font-size: .8rem; font-weight: 700; transition: color .2s ease; }

/* Smaller screens */
@media (max-width: 900px) {
  .hero-layout { min-height: 580px; gap: 30px; }
  .about-layout { gap: 45px; }
  .about-visual { min-height: 400px; }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 72px; }
  .container { width: min(100% - 36px, 500px); }
  .header-inner { min-height: 70px; }
  .menu-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: pointer; }
  .menu-toggle span { width: 19px; height: 2px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 10px 18px 18px; background: var(--canvas); border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(36,31,27,.08); }
  .site-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a { padding: 14px 5px; }
  .site-nav .nav-contact { margin-top: 7px; padding: 13px 18px; text-align: center; }
  .hero-layout, .about-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-layout { gap: 42px; padding-block: 72px 65px; }
  .hero h1 { font-size: clamp(3rem, 11vw, 4.7rem); }
  .hero-art { width: 100%; max-width: 410px; margin-inline: auto; }
  .template-note { margin-top: 35px; }
  .section { padding-block: 78px; }
  .section-heading { display: block; margin-bottom: 33px; }
  .section-heading > p { margin-top: 22px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 245px; }
  .card-top { margin-bottom: 47px; }
  .about-visual { min-height: 370px; }
  .about-content { order: -1; }
  .contact-layout { gap: 50px; }
  .footer-inner { flex-wrap: wrap; padding-block: 30px; }
  .footer-inner p { flex-basis: 100%; order: 3; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}