/* ============ Rosir Consultancy — stylesheet ============ */

:root{
  --dark: #16221f;
  --dark-2: #1c2b28;
  --teal: #2f6b63;
  --teal-dark: #234f49;
  --cream: #e7d9b8;
  --cream-text: #4a3f24;
  --bg-light: #f4f7f5;
  --bg-alt: #eef3f1;
  --text: #16221f;
  --text-muted: #5b6b66;
  --border: #e1e8e4;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 45px -20px rgba(22,34,31,0.25);
  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--white);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
h1,h2,h3,h4{ font-family:var(--font-head); font-weight:700; line-height:1.2; margin:0 0 .5em; color:var(--text); }
p{ margin:0 0 1em; }
.container{ width:100%; max-width:1180px; margin:0 auto; padding:0 24px; }

/* ============ SCROLL-REVEAL ANIMATION ============ */
.reveal{
  opacity:0; transform:translateY(28px);
  transition:opacity .7s cubic-bezier(.16,.8,.3,1), transform .7s cubic-bezier(.16,.8,.3,1);
}
.reveal.is-visible{ opacity:1; transform:translateY(0); }

/* Hero entrance — plays once on load, not scroll-triggered (it's already in view) */
@keyframes hero-in{
  from{ opacity:0; transform:translateY(18px); }
  to{ opacity:1; transform:translateY(0); }
}
.hero-copy > *{ opacity:0; animation:hero-in .8s cubic-bezier(.16,.8,.3,1) forwards; }
.hero-copy > *:nth-child(1){ animation-delay:.05s; }
.hero-copy > *:nth-child(2){ animation-delay:.15s; }
.hero-copy > *:nth-child(3){ animation-delay:.25s; }
.hero-copy > *:nth-child(4){ animation-delay:.35s; }
.hero-copy > *:nth-child(5){ animation-delay:.45s; }
.hero-form-card{ opacity:0; animation:hero-in .8s cubic-bezier(.16,.8,.3,1) .3s forwards; }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  .hero-copy > *, .hero-form-card{ opacity:1; animation:none; }
}

.skip-link{
  position:absolute; left:-999px; top:0; background:var(--teal); color:#fff; padding:10px 16px; z-index:200;
}
.skip-link:focus{ left:12px; top:12px; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:14px 24px; border-radius:999px; font-weight:600; font-size:0.95rem;
  border:1px solid transparent; cursor:pointer; transition:all .2s ease; white-space:nowrap;
}
.btn-primary{ background:var(--teal); color:#fff; }
.btn-primary:hover{ background:var(--teal-dark); transform:translateY(-1px); }
.btn-ghost{ background:transparent; color:var(--cream); border-color:rgba(231,217,184,0.45); }
.btn-ghost:hover{ background:rgba(231,217,184,0.1); }
.btn-light{ background:var(--cream); color:var(--cream-text); }
.btn-light:hover{ background:#f2e8cf; transform:translateY(-1px); }
.btn-ghost-light{ background:transparent; color:#fff; border-color:rgba(255,255,255,0.4); }
.btn-ghost-light:hover{ background:rgba(255,255,255,0.1); }
.btn-sm{ padding:10px 18px; font-size:0.85rem; }
.btn-block{ width:100%; justify-content:center; }

/* ---------- Eyebrow / section head ---------- */
.eyebrow{
  display:inline-block; background:var(--cream); color:var(--cream-text);
  font-size:0.78rem; font-weight:700; letter-spacing:.03em;
  padding:7px 16px; border-radius:999px; margin-bottom:16px;
}
.eyebrow-light{ background:rgba(231,217,184,0.16); color:var(--cream); }
.section-head{ max-width:640px; margin:0 auto 48px; text-align:center; }
.section-head h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }

/* ============ HEADER ============ */
.site-header{
  position:sticky; top:0; z-index:100;
  background:var(--dark); border-bottom:1px solid rgba(255,255,255,0.06);
}
/* Anchor targets need room for the sticky header, or their heading lands
   half-hidden underneath it when jumped to via nav links. */
#consult, #about, #team, #services, #insights, #contact{ scroll-margin-top:88px; }
.header-inner{
  display:flex; align-items:center; justify-content:space-between; gap:24px; padding:16px 24px;
}
.logo{ display:flex; align-items:center; gap:10px; }
.logo-mark{
  width:30px; height:30px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.logo-text{ font-family:var(--font-head); font-weight:700; font-size:1.15rem; color:#fff; }
.logo-text em{ font-style:normal; font-weight:500; opacity:.75; }

.main-nav ul{ display:flex; align-items:center; gap:30px; }
.main-nav a{ color:rgba(255,255,255,0.85); font-size:0.93rem; font-weight:500; display:inline-flex; align-items:center; gap:4px; }
.main-nav a:hover{ color:var(--cream); }
.has-dropdown{ position:relative; }
.chev{ opacity:.7; }
.dropdown{
  position:absolute; top:calc(100% + 14px); left:50%; transform:translateX(-50%);
  background:#fff; border-radius:12px; box-shadow:var(--shadow); padding:10px;
  min-width:240px; opacity:0; visibility:hidden; translate:0 6px;
  transition:all .18s ease; z-index:50;
}
.has-dropdown:hover .dropdown, .has-dropdown:focus-within .dropdown{
  opacity:1; visibility:visible; translate:0 0;
}
.dropdown li a{ color:var(--text); padding:9px 12px; border-radius:8px; display:block; font-size:0.88rem; }
.dropdown li a:hover{ background:var(--bg-alt); color:var(--teal-dark); }

.header-cta{ flex-shrink:0; }
.nav-toggle{
  display:none; flex-direction:column; justify-content:center; gap:5px;
  width:38px; height:38px; background:transparent; border:1px solid rgba(255,255,255,0.2); border-radius:8px; cursor:pointer;
}
.nav-toggle span{ height:2px; background:#fff; border-radius:2px; margin:0 8px; }

/* ============ HERO ============ */
.hero{
  position:relative; background:var(--dark); color:#fff; overflow:hidden;
  padding:64px 0 90px;
}
.hero-decor{ position:absolute; inset:0; pointer-events:none; }
.blob-1{ position:absolute; top:-40px; right:-40px; width:340px; height:340px; }
.dot-grid{
  position:absolute; left:0; bottom:0; width:200px; height:200px;
  background-image:radial-gradient(rgba(231,217,184,0.18) 1.5px, transparent 1.5px);
  background-size:16px 16px; opacity:.5;
}
.hero-grid{
  position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:56px; align-items:start;
}
.hero-copy h1{
  color:#fff; font-size:clamp(2.1rem, 4vw, 3.1rem); margin-bottom:20px;
}
.hero-lead{ color:rgba(255,255,255,0.78); font-size:1.05rem; max-width:520px; }
.hero-actions{ display:flex; flex-wrap:wrap; gap:14px; margin:28px 0 32px; }
.hero-badges{ display:flex; flex-wrap:wrap; gap:22px; }
.hero-badges li{ display:flex; align-items:center; gap:8px; color:rgba(255,255,255,0.75); font-size:0.88rem; }

.hero-form-card{
  background:#fff; color:var(--text); border-radius:16px; padding:22px; box-shadow:var(--shadow);
  margin-top:8px;
}
.hero-form-card h2{ font-size:1.15rem; margin-bottom:2px; }
.hero-form-sub{ color:var(--text-muted); font-size:0.82rem; margin-bottom:12px; }
.consult-form .field{ display:block; margin-bottom:10px; }
.consult-form .field span{ display:block; font-size:0.74rem; font-weight:600; margin-bottom:4px; color:var(--text); }
.consult-form input, .consult-form select, .consult-form textarea{
  width:100%; padding:8px 11px; border:1px solid var(--border); border-radius:8px;
  font-family:var(--font-body); font-size:0.82rem; color:var(--text); background:#fbfcfb;
}
.consult-form input:focus, .consult-form select:focus, .consult-form textarea:focus{
  outline:none; border-color:var(--teal); background:#fff;
}
.consult-form textarea{ resize:vertical; }
.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.hero-form-card .btn-block{ padding:10px 20px; font-size:0.86rem; }
.form-note{ text-align:center; font-size:0.72rem; color:var(--text-muted); margin:8px 0 0; }
.consult-choices{ margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.consult-choices-lede{ font-size:0.8rem; font-weight:600; color:var(--text); margin-bottom:8px; text-align:center; }
.consult-choices-grid{ display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.consult-choice{
  display:flex; flex-direction:column; gap:2px; padding:9px 12px; border-radius:var(--radius-sm);
  border:1px solid var(--border); background:var(--bg-alt); text-decoration:none;
  transition:border-color .15s ease, background .15s ease;
}
.consult-choice:hover{ border-color:var(--teal); background:#fff; }
.consult-choice-label{ font-size:0.8rem; font-weight:700; color:var(--text); }
.consult-choice-sub{ font-size:0.68rem; color:var(--text-muted); }
.consult-choice-whatsapp{ border-color:#25D366; }
.consult-choice-whatsapp .consult-choice-label{ color:#1a9e4e; }
@media (max-width:420px){
  .consult-choices-grid{ grid-template-columns:1fr; }
}

/* ============ ABOUT ============ */
.about{ padding:96px 0; background:var(--white); }
.about-grid{ display:grid; grid-template-columns:.95fr 1.05fr; gap:64px; align-items:center; }
.about-visual{
  display:grid; grid-template-columns:1fr 1fr; grid-template-rows:auto auto; gap:16px;
}
.visual-tile{ background:var(--bg-alt); border-radius:16px; overflow:hidden; display:flex; align-items:center; justify-content:center; color:var(--teal-dark); }
.visual-tile--large{ grid-column:1 / -1; aspect-ratio:16/10; }
.about-visual .visual-tile:not(.visual-tile--large){ aspect-ratio:1/1; background:#fff; border:1px solid var(--border); }
.about-visual .visual-tile:not(.visual-tile--large) svg{ width:55%; height:55%; }

.about-copy h2{ font-size:clamp(1.7rem, 3vw, 2.3rem); }
.pull-quote{
  background:var(--teal-dark); color:#fff; padding:22px 26px; border-radius:14px;
  font-size:0.98rem; line-height:1.65; margin:18px 0 22px;
}
.about-points{ display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:22px 0 30px; }
.about-points h3{ font-size:1rem; margin-bottom:6px; }
.about-points p{ font-size:0.9rem; color:var(--text-muted); margin:0; }

/* ============ TEAM ============ */
.team{ padding:96px 0; background:var(--white); }
.team .section-head p{ color:var(--text-muted); font-size:0.98rem; margin-top:6px; }
.heading-accent{ text-decoration:underline; text-decoration-color:var(--teal); text-decoration-thickness:3px; text-underline-offset:7px; }

.team-grid{ display:flex; justify-content:center; }
.team-card{
  display:grid; grid-template-columns:320px 1fr; gap:76px; align-items:stretch;
  max-width:980px; width:100%; text-align:left;
}

.team-photo{
  position:relative; background:var(--bg-alt); border-radius:18px; overflow:hidden;
  min-height:380px;
}
.team-photo img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 18%;
}
.team-photo-badge{
  position:absolute; top:16px; left:16px; z-index:2; background:#fff; color:var(--teal-dark);
  font-weight:700; font-size:0.78rem; padding:8px 15px; border-radius:8px; box-shadow:var(--shadow);
}

.team-info h3{ font-size:1.4rem; margin-bottom:4px; }
.team-role{ color:var(--teal-dark); font-weight:600; font-size:0.92rem; margin-bottom:16px; }
.team-info > p{ color:var(--text-muted); font-size:0.95rem; }

.team-socials{ display:flex; gap:10px; list-style:none; margin:18px 0 0; padding:0; }
.team-socials a{
  width:38px; height:38px; border-radius:9px; background:#fff; border:1px solid var(--border); color:var(--teal-dark);
  display:flex; align-items:center; justify-content:center; transition:background .2s ease, border-color .2s ease, color .2s ease;
}
.team-socials a:hover{ background:var(--teal-dark); border-color:var(--teal-dark); color:#fff; }

.team-divider{ height:1px; background:var(--border); margin:28px 0; }

.team-info h4{ font-size:1.1rem; margin-bottom:8px; }

.team-highlights{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:12px; }
.team-highlights li{ display:flex; align-items:center; gap:12px; font-size:0.92rem; color:var(--text); }
.check-badge{
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
  width:22px; height:22px; border-radius:50%; background:var(--teal-dark); color:#fff;
}
.check-badge svg{ width:12px; height:12px; }

.team-motto{
  font-family:var(--font-head); font-style:italic; font-size:1.05rem; color:var(--teal);
  border-left:3px solid var(--cream); padding-left:16px; margin:26px 0 20px; line-height:1.5;
}

/* ============ SERVICES ============ */
.services{ padding:96px 0; background:var(--bg-light); position:relative; }
.services-grid{ display:grid; grid-template-columns:repeat(2, 1fr); gap:24px; max-width:920px; margin:0 auto; }
.service-card{
  background:#fff; border:1px solid var(--border); border-radius:16px; padding:34px 28px;
  transition:transform .2s ease, box-shadow .2s ease, background-color .25s ease, border-color .25s ease,
    opacity .7s cubic-bezier(.16,.8,.3,1);
}
.service-card:hover{
  transform:translateY(-4px); box-shadow:var(--shadow);
  background:var(--teal-dark); border-color:var(--teal-dark); color:#fff;
}
.service-card:hover h3, .service-card:hover p{ color:#fff; }
.service-card:hover .card-link{ color:var(--cream); }
.service-icon{
  width:54px; height:54px; border-radius:50%; background:var(--cream); color:var(--teal-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:20px;
  transition:background-color .25s ease, color .25s ease;
}
.service-card:hover .service-icon{ background:rgba(255,255,255,0.15); color:#fff; }
.service-card h3{ font-size:1.12rem; margin-bottom:10px; transition:color .25s ease; }
.service-card p{ font-size:0.9rem; color:var(--text-muted); margin-bottom:18px; transition:color .25s ease; }
.card-link{
  font-weight:600; font-size:0.88rem; color:var(--teal-dark);
  background:none; border:none; padding:0; margin:0; cursor:pointer; font-family:inherit;
  display:inline-flex; align-items:center; gap:4px; transition:color .25s ease;
}
.card-link:hover{ text-decoration:underline; }
.services-cta{ text-align:center; margin-top:48px; }

/* ============ SERVICE DETAIL MODAL ============ */
.service-modal{ position:fixed; inset:0; z-index:300; display:none; }
.service-modal.is-open{ display:block; }
.service-modal-overlay{ position:absolute; inset:0; background:rgba(22,34,31,0.55); backdrop-filter:blur(2px); }
.service-modal-panel{
  position:relative; z-index:1; background:#fff; border-radius:20px; box-shadow:var(--shadow);
  max-width:640px; width:calc(100% - 40px); max-height:calc(100vh - 60px); overflow-y:auto;
  margin:30px auto; padding:40px 40px 34px; animation:modal-in .18s ease;
}
@keyframes modal-in{ from{ opacity:0; transform:translateY(12px); } to{ opacity:1; transform:translateY(0); } }
.service-modal-close{
  position:absolute; top:20px; right:20px; width:34px; height:34px; border-radius:50%;
  background:var(--bg-alt); border:none; color:var(--teal-dark); cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.service-modal-close:hover{ background:var(--border); }
.service-modal-panel h2{ font-size:clamp(1.4rem, 3vw, 1.7rem); padding-right:40px; }
.service-modal-intro{ font-size:0.98rem; color:var(--text-muted); margin-bottom:24px; }
.service-modal-sections{ display:grid; gap:20px; margin-bottom:28px; }
.service-modal-sections h3{ font-size:1rem; margin-bottom:6px; color:var(--teal-dark); }
.service-modal-sections p{ font-size:0.92rem; color:var(--text-muted); margin:0; }
.service-modal-tagline{
  font-family:var(--font-head); font-style:italic; font-size:0.95rem; color:var(--teal);
  border-top:1px solid var(--border); padding-top:18px; margin-bottom:22px;
}

/* ============ INSIGHTS ============ */
.insights{ padding:96px 0; background:var(--bg-light); }
.insights-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; }
.insight-card{ background:#fff; border:1px solid var(--border); border-radius:16px; padding:28px; }
.insight-tag{
  display:inline-block; font-size:0.72rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  background:var(--bg-alt); color:var(--teal-dark); padding:5px 12px; border-radius:999px; margin-bottom:14px;
}
.insight-card h3{ font-size:1.05rem; margin-bottom:10px; }
.insight-card p{ font-size:0.89rem; color:var(--text-muted); margin:0; }

/* ============ CTA BANNER ============ */
.cta-banner{ background:var(--teal-dark); color:#fff; padding:72px 0; }
.cta-banner-inner{ text-align:center; max-width:640px; margin:0 auto; }
.cta-banner h2{ color:#fff; font-size:clamp(1.5rem, 3vw, 2rem); }
.cta-banner p{ color:rgba(255,255,255,0.8); }
.cta-banner-actions{ justify-content:center; margin-top:24px; }

/* ============ CONTACT ============ */
.contact{ padding:96px 0; background:#fff; }
.contact-grid{ display:grid; grid-template-columns:repeat(5, 1fr); gap:20px; }
.contact-card{
  border:1px solid var(--border); border-radius:16px; padding:26px; text-align:left;
  transition:all .2s ease;
}
.contact-card:hover{ border-color:var(--teal); box-shadow:var(--shadow); transform:translateY(-3px); }
.contact-icon{
  width:46px; height:46px; border-radius:12px; background:var(--bg-alt); color:var(--teal-dark);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px;
}
.contact-card h3{ font-size:0.98rem; margin-bottom:4px; }
.contact-card p{ font-size:0.86rem; color:var(--text-muted); margin:0; word-break:break-word; }

/* ============ FOOTER ============ */
.site-footer{ background:var(--dark); color:rgba(255,255,255,0.75); padding:72px 0 0; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; padding-bottom:56px; border-bottom:1px solid rgba(255,255,255,0.08); }
.footer-brand p{ font-size:0.88rem; margin:14px 0 18px; }
.footer-socials{ display:flex; gap:10px; }
.footer-socials a{
  width:36px; height:36px; border-radius:50%; background:rgba(255,255,255,0.08);
  display:flex; align-items:center; justify-content:center; font-size:0.72rem; font-weight:700; color:#fff;
}
.footer-socials a:hover{ background:var(--teal); }
.footer-col h4{ color:#fff; font-family:var(--font-body); font-size:0.9rem; margin-bottom:16px; }
.footer-col ul{ display:flex; flex-direction:column; gap:10px; }
.footer-col a{ font-size:0.88rem; color:rgba(255,255,255,0.65); }
.footer-col a:hover{ color:var(--cream); }
.footer-bottom{ padding:24px 0; text-align:center; font-size:0.8rem; color:rgba(255,255,255,0.5); }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px){
  .main-nav, .header-cta{ display:none; }
  .nav-toggle{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; }
  .about-grid{ grid-template-columns:1fr; }
  .about-visual{ order:2; }
  .team-card{ grid-template-columns:1fr; }
  .team-photo{ width:100%; max-width:320px; margin:0 auto; aspect-ratio:3/2.4; }
  .services-grid{ grid-template-columns:repeat(2, 1fr); }
  .why-grid{ grid-template-columns:repeat(2, 1fr); }
  .insights-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}

@media (max-width: 600px){
  .header-inner{ padding:14px 20px; }
  .hero{ padding:40px 0 64px; }
  .hero-form-card{ padding:24px; }
  .field-row{ grid-template-columns:1fr; }
  .about-points{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns:1fr; }
  .contact-grid{ grid-template-columns:1fr 1fr; gap:14px; }
  .footer-grid{ grid-template-columns:1fr; gap:32px; }
  .section-head{ margin-bottom:32px; }

  /* Desktop sections carry 72–96px of top+bottom padding, which stacks into
     very large dead gaps once everything's a single mobile column. */
  .about, .team, .services, .insights, .contact{ padding:56px 0; }
  .cta-banner{ padding:48px 0; }
  .about-grid{ gap:40px; }
  .services-cta{ margin-top:32px; }
}

@media (max-width: 380px){
  .contact-grid{ grid-template-columns:1fr; }
}

/* Mobile nav (open state driven by JS) */
.main-nav.is-open{
  display:block; position:absolute; top:100%; left:0; right:0; background:var(--dark);
  padding:12px 24px 24px; border-top:1px solid rgba(255,255,255,0.08);
}
.main-nav.is-open ul{ flex-direction:column; align-items:flex-start; gap:4px; }
.main-nav.is-open li{ width:100%; }
.main-nav.is-open a{ padding:12px 4px; width:100%; }
.main-nav.is-open .dropdown{
  position:static; transform:none; opacity:1; visibility:visible; box-shadow:none;
  background:transparent; padding:0 0 0 14px; display:none;
}
.main-nav.is-open .has-dropdown.is-open .dropdown{ display:block; }
.main-nav.is-open .dropdown li a{ color:rgba(255,255,255,0.7); }
