/* =========================================================
   Stelios K. Stylianou & Co LLC
   Editorial law-firm site — Alegreya (headings) + Inter (UI)
   Palette: ink + warm ivory + deep navy, restrained brass accent
   ========================================================= */

:root {
  --ink:       #1A1C20;
  --ink-soft:  #33373E;
  --paper:     #FBFAF7;
  --paper-2:   #F1EDE5;
  --navy:      #1B2A44;
  --navy-2:    #16223A;
  --brass:     #8C6E44;
  --brass-2:   #B89A6C;   /* on dark */
  --muted:     #6B6F77;
  --muted-2:   #9A948A;
  --line:      #E4DED2;
  --line-dark: rgba(255,255,255,.14);

  --serif: "Alegreya", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 1160px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--serif); font-weight: 600; line-height: 1.14; color: var(--ink); letter-spacing: .1px; overflow-wrap: break-word; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1500px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section.alt { background: var(--paper-2); }
/* Keep anchored jumps clear of the sticky header (and stop #top over-scrolling) */
#top, #about, #services, #team, #contact { scroll-margin-top: 84px; }

/* ---- shared type ---- */
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--brass);
  display: inline-flex; align-items: center; gap: 11px; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); opacity: .7; }
.eyebrow.on-dark { color: var(--brass-2); }
.eyebrow.on-dark::before { background: var(--brass-2); }
.section-title { font-size: clamp(28px, 3.8vw, 44px); font-weight: 600; }
.section-head { max-width: 640px; margin-bottom: clamp(38px, 5vw, 60px); }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 14px; }
.lede { font-size: 19px; color: var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 14px; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 2px; border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn-solid { background: var(--navy); color: #fff; }
.btn-solid:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-block { width: 100%; }
.btn-ico { font-size: 15px; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(251,250,247,.92); backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wordmark-name { font-family: var(--serif); font-weight: 700; font-size: 21px; color: var(--ink); letter-spacing: .2px; white-space: nowrap; }
.wordmark-name .amp { color: var(--brass); font-style: italic; }
.wordmark-sub { font-family: var(--sans); font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.nav { display: flex; gap: 30px; }
.nav a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); white-space: nowrap; padding: 4px 0; position: relative; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1.5px; width: 0; background: var(--brass); transition: width .28s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.lang { display: inline-flex; align-items: center; gap: 8px; }
.lang-btn { background: none; border: none; cursor: pointer; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--muted); padding: 2px 1px; transition: color .2s var(--ease); }
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--brass); }
.lang-div { width: 1px; height: 12px; background: var(--line); }
.nav-cta { padding: 10px 20px; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; width: 28px; height: 18px; position: relative; }
.menu-toggle span { position: absolute; left: 0; height: 2px; width: 100%; background: var(--ink); transition: .3s var(--ease); }
.menu-toggle span:nth-child(1) { top: 2px; }
.menu-toggle span:nth-child(2) { bottom: 2px; }
.menu-toggle.open span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { bottom: 8px; transform: rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero { position: relative; min-height: min(86vh, 780px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0;
  /* PHOTO: office exterior → images/office.jpg */
  background-color: var(--navy);
  background-image: url("../images/office.jpg");
  background-size: cover; background-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,32,58,.35) 0%, rgba(20,32,58,.55) 55%, rgba(16,24,40,.9) 100%);
}
.hero-content { position: relative; z-index: 2; padding-bottom: clamp(54px, 8vw, 96px); padding-top: 120px; max-width: 760px; }
.hero-title { color: #fff; font-size: clamp(38px, 6.4vw, 74px); font-weight: 700; line-height: 1.02; letter-spacing: -.4px; }
.hero-title-sub { display: block; font-weight: 400; font-style: italic; font-size: .46em; color: var(--brass-2); margin-top: 8px; letter-spacing: 0; }
.hero-sub { color: rgba(255,255,255,.86); font-size: clamp(17px, 2vw, 21px); max-width: 560px; margin-top: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(44px, 6vw, 96px); align-items: center; }
.about-text .section-title { margin-bottom: 24px; }
.about-text p + p { margin-top: 18px; }
.about-text .lede { margin-bottom: 4px; }
.ticks { margin-top: 34px; display: grid; gap: 16px; }
.ticks li { display: flex; gap: 13px; align-items: flex-start; color: var(--ink-soft); font-size: 16px; }
.tick { width: 8px; height: 8px; margin-top: 9px; flex: none; border: 1.5px solid var(--brass); border-radius: 50%; }

.photo { position: relative; background: var(--paper-2); background-size: cover; background-position: center; overflow: hidden; border-radius: 2px; box-shadow: var(--shadow-md); }
.photo-about { aspect-ratio: 3/2; }
.about-media { margin: 0; }
/* Group photo shown full (native 3:2, no crop) */
.photo[data-img="group"] { background-image: url("../images/team.jpg"); background-position: center; }
.about-media figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); letter-spacing: .02em; }

/* =========================================================
   SERVICES
   ========================================================= */
.svc-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(28px, 4vw, 56px); }
.svc { display: flex; gap: 16px; align-items: flex-start; padding: 26px 0; border-top: 1px solid var(--line); }
.svc-no { font-family: var(--serif); font-size: 15px; font-weight: 500; color: var(--brass); padding-top: 4px; min-width: 22px; }
.svc h3 { font-size: 21px; margin-bottom: 6px; }
.svc p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.section.alt .svc { border-top-color: #E2DBCC; }

/* =========================================================
   TEAM
   ========================================================= */
/* Full, uncropped landscape portraits */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.2vw, 28px); align-items: start; }
.member { margin: 0; }
.member img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; border-radius: 2px; box-shadow: var(--shadow-md); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: 32px; }
.contact-lines { display: flex; gap: clamp(28px, 4vw, 56px); flex-wrap: wrap; margin: 0; }
.contact-lines dt { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass); font-weight: 600; margin-bottom: 5px; }
.contact-lines dd { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--ink); font-weight: 500; }
.contact-lines a:hover { color: var(--brass); }
.contact-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.google-badge { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 11px 16px; border: 1px solid var(--line); border-radius: 2px; transition: border-color .25s var(--ease); background: var(--paper); }
.google-badge:hover { border-color: var(--brass); }
.google-badge .stars { color: var(--brass); letter-spacing: 2px; }

.contact-form { border-top: 1px solid var(--line); padding-top: 26px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; display: flex; flex-direction: column; }
.field label { font-size: 12.5px; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft); margin-bottom: 6px; }
.field input, .field textarea {
  font-family: var(--sans); font-size: 15px; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.section.alt .field input, .section.alt .field textarea { background: #fff; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(140,110,68,.12); }
.field textarea { resize: vertical; min-height: 104px; }
.hidden-field { display: none; }
.form-status { margin-top: 12px; font-size: 14.5px; font-weight: 500; min-height: 1.1em; }
.form-status.success { color: #256b45; }
.form-status.error { color: #a63a3a; }

.contact-map { position: static; }
#map { width: 100%; height: 440px; border-radius: 2px; background: var(--paper-2); z-index: 1; box-shadow: var(--shadow-sm); }
.map-large { height: clamp(400px, 54vh, 580px); }
.leaflet-container { font-family: var(--sans); }
.map-pin { filter: drop-shadow(0 3px 5px rgba(20,32,58,.4)); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding: clamp(52px, 6vw, 76px) 0 44px; }
.footer-name { font-family: var(--serif); font-size: 22px; color: #fff; font-weight: 600; }
.footer-tagline { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2); margin-top: 8px; }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 18px; }
.footer-col a { display: block; margin-bottom: 11px; font-size: 14.5px; color: rgba(255,255,255,.72); transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 24px 0 40px; display: flex; flex-direction: column; gap: 10px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,.45); max-width: 760px; line-height: 1.6; }
.footer-legal { font-size: 12.5px; color: rgba(255,255,255,.6); }
.footer-legal .credit { color: var(--brass-2); font-weight: 500; transition: color .2s var(--ease); }
.footer-legal a.credit:hover { color: #fff; text-decoration: underline; }

/* =========================================================
   REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .svc-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .member-name { font-size: 20px; }
}
@media (max-width: 820px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px; transform: translateY(calc(-100% - 96px));
    visibility: hidden; transition: transform .35s var(--ease), visibility .35s; z-index: 999;
  }
  .nav.open { transform: translateY(0); visibility: visible; box-shadow: 0 20px 40px rgba(20,32,58,.12); }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav a::after { display: none; }
  .menu-toggle { display: block; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 560px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .header-inner { gap: 12px; }
  .header-actions { gap: 10px; }
  .nav-cta { padding: 9px 15px; font-size: 12.5px; }
  .wordmark-name { font-size: 16px; }
  .wm-suffix { display: none; }
  .wordmark-sub { display: none; }
  .svc-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; }
  .member { max-width: 460px; margin-inline: auto; }
  .contact-lines { gap: 22px 32px; }
  .contact-top { gap: 20px; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; padding-bottom: 36px; text-align: center; }
  .footer-name { font-size: 22px; }
  .footer-brand { align-items: center; }
  .footer-tagline { margin-inline: auto; }
  .footer-bottom { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
