
/* in css/style.css */
/*@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap");*/
@import url("https://fonts.googleapis.com/css2?family=Crimson+Pro:ital,wght@0,200..900;1,200..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root{
  --bg:#ffffff;
  --ink:#111111;
  --muted:#6b7280;
  --brand:#0f172a;
  --accent:#64748b;
  
    /* NEW: font stacks */
  --font-sans: "Poppins", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Crimson Pro", Georgia, "Times New Roman", serif;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--ink);font-family:var(--font-sans);}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: rgba(102, 97, 109, 1);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: 1.2;
}
img{max-width:100%;display:block}
a{
    /*color:var(--brand);*/
    color: rgba(102, 97, 109, 1);
    text-decoration:none; 
    font-family: var(--font-serif);
    text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.18)
    
}
label {
    font-family: var(--font-sans);
}
.container{max-width:1440px;margin:0 auto;padding:0 20px}
header{position:fixed;top:0;left:0;right:0;background:#fffc;z-index:10}
.logo-img { height: 30px; width: auto; display: block; }
.sr-only {
  position: absolute; width:1px; height:1px; padding:0; margin:-1px; 
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

.nav{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;}
.nav a.logo{font-weight:700;letter-spacing:.12em}
.nav ul{display:flex;gap:18px;list-style:none;margin:0;padding:0; text-shadow: 0px 3px 4px rgba(0, 0, 0, 0.18);}
.nav a{ display: block; }
.nav a[aria-current="page"]{
    /*text-decoration:underline;*/
    text-decoration:none;
    text-underline-offset:6px;
    display: block;
}
.hero{position:relative;height:72vh;min-height:420px;display:grid;place-items:center;background:#e5e7eb;overflow:hidden}
.hero video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.hero::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.55),rgba(0,0,0,.10));}
.hero .inner{position:relative;color:#fff;text-align:center;padding:0 20px}
.hero h1{font-size:clamp(28px,5vw,56px);margin:0 0 8px}
.hero p{max-width:720px;margin:0 auto}
.section{padding:64px 0}
.grid{display:grid;gap:22px}
.grid-3{grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}
.card{background:#fff;border:1px solid #eee;border-radius:16px;padding:18px}
.footer{padding:32px 0;border-top:1px solid #eee;color:var(--muted);font-size:14px}
.kicker{letter-spacing:.25em;text-transform:uppercase;color:#94a3b8;font-size:12px}
.lead{font-size:18px;color:var(--muted)}
.btn{display:inline-block;padding:12px 18px;border-radius:999px;border:1px solid #111}
.responsive-embed{position:relative;padding-top:56.25%}
.responsive-embed iframe, .responsive-embed img{position:absolute;inset:0;width:100%;height:100%;border:0}
.site-header .logo--light{ display:none; }
.site-header.is-hero .logo--light{ display:block; }
.site-header.is-hero .logo--dark{  display:none; }

/* small mobile nav */
.burger{display:none}
@media (max-width:720px){
  .nav ul{
    flex-direction: column;
    /* keep it in the flow so it can animate (avoid display:none) */
    position:absolute; top:63px; left:0; right:0;
    padding:16px;

    /* animation setup */
    opacity:0;
    transform: translateY(-8px) scaleY(.98);
    transform-origin: top;
    max-height: 0;
    overflow: hidden;
    pointer-events:none;
    visibility:hidden;

    /* smoothness */
    transition:
      opacity .25s ease,
      transform .25s ease,
      max-height .35s ease,
      visibility 0s linear .25s; /* hide after fade */
  }

  /* show + animate the dropdown when HEADER gets .open */
  .site-header.open .nav ul{
    /*flex-direction: column;*/
    opacity:1;
    background: #fffc;
    transform: translateY(0) scaleY(1);
    max-height: 70vh;          /* enough to show all items */
    pointer-events:auto;
    visibility:visible;
    transition:
      opacity .25s ease,
      transform .25s ease,
      max-height .35s ease,
      visibility 0s;            /* show immediately */
  }

  /* tint the bar when open (you already had this) */
  .site-header .container.nav {
    transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
  }
  .site-header.is-hero.open .container.nav {
    background: rgba(0,0,0,.7);
  }

  /* Burger base */
  .burger{
    display:inline-flex; gap:6px; flex-direction:column;
    background:transparent; border:0;
    transition: transform .25s ease;       /* subtle rotate on open (optional) */
  }
  .burger span{
    width:22px; height:2px; background:#111;
    border-radius:1px;
    transition: transform .25s ease, opacity .2s ease, background-color .25s ease;
    transform-origin: 3px 1px;              /* helps the X morph look tighter */
  }

  /* Morph burger into an “X” and rotate the button a touch */
  .site-header.open .burger { transform: rotate(90deg); } /* optional flair */
  .site-header.open .burger span:nth-child(1){
    transform: translateY(9px) rotate(45deg);
  }
  .site-header.open .burger span:nth-child(2){
    opacity:0;
  }
  .site-header.open .burger span:nth-child(3){
    transform: translateY(-11px) rotate(-45deg);
  }

  /* hero variant (white lines over video) */
  .site-header.is-hero .burger span{ background:#fff; }
  .site-header.is-hero.open .nav ul{ background:rgba(0,0,0,.7); }
  .site-header.is-hero.open .nav a{ color:#fff; }

  /* Accessibility: respect users who prefer less motion */
  @media (prefers-reduced-motion: reduce){
    .nav ul, .burger, .burger span {
      transition: none !important;
    }
  }
}



/* ----- Header over video ----- */
.site-header.is-hero {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  background: transparent; border: 0; backdrop-filter: unset;
}
.site-header.is-hero .nav a,
.site-header.is-hero .nav ul li a { color: #fff; }
.site-header.is-hero .icon-link { align-items: center; color: #fff; }
.site-header.is-hero .logo-img { height: 30px; width: auto; }

@media (max-width: 720px){
  .site-header.is-hero .nav.open ul { background: rgba(0,0,0,.7); }
  .site-header.is-hero .nav ul a { color:#fff; }
}

/* ----- Fullscreen video hero ----- */
.hero--video { position: relative; height: 100vh; min-height: 540px; overflow: hidden; }
.hero--video video { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.hero--video::after{
  content:""; position:absolute; inset:0;
  background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.15));
}

/* Centered logo + text over the video */
.hero-badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  text-align: center; z-index: 2; color: #fff; padding: 0 20px;
}
.hero-badge img { width: 295px; height: auto; margin-bottom: 10px; padding: 0 20px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.35)); }
.hero-title { margin: 0; font-size: clamp(26px, 6vw, 56px); letter-spacing: .5em; }
.hero-sub { margin: 8px 0 0; font-size: 14px; opacity: .9 }

/* See more button at bottom center */
.see-more{
  position:absolute; left:50%; bottom:28px; transform:translateX(-50%);
  z-index:2; background:transparent; color:#fff; border:none;
  padding:10px 16px; border-radius:999px; letter-spacing:.2em;
  cursor:pointer; transition: background .2s, color .2s, border-color .2s;
}
/*.see-more:hover{ background:#fff; color:#111; border-color:#fff; }*/

/* ----- Slide-up panel ----- */
.intro-panel{
  position: fixed; left:0; right:0; bottom:0; top:0;
  display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,.45);
  transform: translateY(100%); opacity:0; visibility:hidden;
  transition: transform .5s cubic-bezier(.2,.8,.2,1), opacity .3s, visibility .3s;
  z-index: 30; padding: 24px;
}
.intro-panel.open{
  transform: translateY(0); opacity:1; visibility:visible;
}
.panel-content{
  width:min(865px, 100%);
  height:min(615px, 100%);
  background:#fff; color:#111; padding:28px 28px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}
.panel-content h2{
  font-weight: 400; font-size: 20px;
}
.panel-content p{
  font-size: 14px;
}
.panel-content h2, .panel-content p{
  text-align: center;
}
.panel-actions{ display:flex; gap:12px; justify-content: center; margin-top:12px; }
.panel-actions .btn{ border: none; font-size: 20px;}
.btn{ display:inline-block; padding:10px 16px; border:1px solid #111; border-radius:999px; }
.btn-ghost{ background:transparent; }
.panel-close{
  position: absolute; top: 16px; right: 18px;
  width:36px; height:36px; border:0; border-radius:999px;
  background:#fff; box-shadow: 0 4px 20px rgba(0,0,0,.2); cursor:pointer;
  font-size:22px; line-height:1;
}

/* Optional spacing for any content below the fold */
.below-fold { min-height: 40vh; }

/* === Hover-reveal service tiles === */
.section-title{ text-align:center; margin:0 0 22px; }

/* grid unchanged */
.services-grid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(4, minmax(300px,1fr));
  justify-content: center;
}
@media (max-width:1270px){ .services-grid{ grid-template-columns:repeat(3,minmax(280px,1fr)); } }
@media (max-width:900px){  .services-grid{ grid-template-columns:repeat(2,minmax(220px,1fr)); } .services-hero{ padding: 65px 0; } }
@media (max-width:560px){  .services-grid{ grid-template-columns:1fr; } }

.service-tile{
  --title-slide: 190px;           /* how far the title starts from the top */
  position:relative;
  min-height:280px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(17,17,17,.08);
  overflow:hidden;
  box-shadow:0 1px 0 rgba(0,0,0,.04);
}

/* Title starts near the bottom, then slides UP to the top on hover */
.service-title{
  position:absolute; left:18px; top:15px; right:18px;
  margin:0;
  color:rgba(102,97,109,.5);
  font-size:24px;
  transform: translateY(var(--title-slide));
  transition: transform .25s ease, color .25s ease;
  z-index:2;
  padding: 0 10px;
}

/* Details fade/slide in under the title */
.service-body{
  position:absolute; inset:0;
  padding:155px 30px 18px;        /* room at top for the title once it slides up */
  color:#6b7280; font-size:14px; line-height:1.6;
  opacity:0; transform:translateY(8px);
  transition:opacity .25s ease, transform .25s ease;
}

/* Reveal state: title at top; details visible */
.service-tile:hover .service-title,
.service-tile:focus-within .service-title,
.service-tile.reveal .service-title{
  transform: translateY(0);
  color:#111;
}
.service-tile:hover .service-body,
.service-tile:focus-within .service-body,
.service-tile.reveal .service-body{
  opacity:1; transform:translateY(0);
}

@media (prefers-reduced-motion: reduce){
  .service-title, .service-body{ transition:none; }
}



/* Services page background image */
.services-hero{
  position: relative;
  padding: 133px 0;               /* keep your existing spacing */
  background-image: url("/img/service_background.jpg?v=4"); /* public path */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Soft white veil so text/cards read clearly over the photo */
.services-hero::before{
  content:"";
  position:absolute; inset:0;
  background: rgba(255,255,255,.75);   /* adjust 0.75 → lighter/darker */
}

/* Put the content above the veil */
.services-hero > .container{
  position: relative; z-index: 1;
}

/* (Optional) parallax-like effect on large screens only */
@media (min-width: 1024px){
  .services-hero{ background-attachment: fixed; }
}


/* ------------------- About ------------------- */
/* About hero with corner decorations */
.about-hero{
  position: relative;
  overflow: hidden;                 /* hide parts that extend beyond edges */
  background:#fff;
  padding: 0 0 120px;            /* top/bottom space */
}

.about-copy{
  position: relative;               /* creates stacking context above decos */
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.about-copy .lead{ font-size: 14px; font-weight: 400; color:rgba(102, 97, 109, 0.6); }

@media (max-width: 620px){
    .about-sec2 {
        flex-direction: column !important;
    }
}

/* Decorative images: positioned & responsive */
.about-deco{
  position: absolute;
  z-index: 0;
  pointer-events: none;
  user-select: none;
  opacity: .9;
  width: auto;
  max-width: none;
}

/* Bottom-left (largest) */
.about-deco--l1{
  left: -1.5vw;
  bottom: 1vw;
  width: clamp(165px, 18vw, 520px);
}

/* Upper-left (smaller) */
.about-deco--l2{
  left: 12vw;
  bottom: 18vh;
  width: clamp(100px, 10vw, 280px);
  transform: rotate(10deg);
}

/* Upper-right (large) */
.about-deco--r1{
  right: -3vw;
  bottom: -5vh;
  width: clamp(200px, 22vw, 380px);
}

/* Lower-right (medium) */
.about-deco--r2{
  right: -2vw;
  bottom: 25vh;
  width: clamp(150px, 10vw, 380px);
}

/* Responsive tweaks */
@media (max-width: 1024px){
  .about-hero{ padding-bottom: 96px; }
  /*.about-deco--l1{ left:-8vw; bottom:-10vw; }*/
  .about-deco--l2{ left:10vw; bottom: 17vh; }
  .about-deco--r1{ bottom:-3vw; }
  .about-deco--r2{ bottom:21vw; }
  .about-copy{ max-width: 480px; }
}

/*@media (max-width: 890px){*/
/*  .about-deco--r1{ top:36vw; }*/
/*}*/

@media (max-width: 768px){
  .about-hero{ padding: 56px 0 72px; }
  /* scale down/right-shift so copy stays readable */
  .about-deco--l1{ left: -1.5vw; bottom: 1vw; opacity: 0.2; }
  .about-deco--l2{ left:4vw; bottom: 20vh; opacity: 0.2; }
  .about-deco--r1{ bottom:-7vw; opacity: 0.2; }
  .about-deco--r2{ bottom:21vw; opacity: 0.2; }
  .about-copy { max-width: 450px; }
}

@media (max-width: 480px){
  /* reduce visual noise on very small screens */
  .about-deco--l2{ opacity:.2; width: clamp(65px, 18vw, 120px) }
  .about-deco--r2{ opacity:.2; width: clamp(115px, 28vw, 220px) }
  .about-deco--l1{ opacity:.2; width: clamp(115px, 25vw, 220px) }
  .about-deco--r1{ opacity:.2; width: clamp(115px, 25vw, 220px) }
}

.about-s3{
  position: relative;         /* makes abs children use THIS as reference */
  overflow: hidden;           /* keeps the deco inside the section */
}

.about-s3-grid{
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  align-items: start;
}

.s3-copy {
    font-size: 14px; 
    font-weight: 400; 
    color: rgba(102, 97, 109, 0.6);
}
.about-s3 .s3-deco{
  position: absolute;
  right: -4vw;                /* nudge off the edge like your mock */
  bottom: 0vw;
  width: clamp(160px, 19vw, 380px);
  opacity: .4;
  pointer-events: none;       /* purely decorative */
  user-select: none;
  z-index: 0;                 /* behind the content */
}

.about-s3 .container{ z-index: 1; position: relative;}

.about-cert .container{ z-index: 1; position: relative; max-width: 1200px;}

@media (max-width: 900px){
  .about-s3-grid{ grid-template-columns: 1fr; }
  .about-s3 .s3-deco{
    right: -18vw; bottom: -10vw;   /* push farther out on small screens */
    opacity: .35;                  /* lighter so text stays readable */
  }
  .about-s3 .container {
    padding: 0 40px !important;
  }
  /*.s4-title { text-align: center; }*/
}

/* --- Section 4 layout --- */
.about-s4-grid{
  display:grid;
  grid-template-columns: 1.15fr 1fr 1fr; /* text a bit narrower than each photo */
  gap: 40px;
  align-items: center;                  /* vertical centering across the row */
}

/* Left column */
.s4-copy{
  display:flex;
  flex-direction:column;
  gap:16px;                             /* simple spacing; no space-between */
  align-self:center;                    /* extra safety for centering */
  height: 100%;
  justify-content: space-between;
}
.s4-title{ font-size:24px; font-weight:400; margin:0; }

/* Photos: equal size using aspect-ratio + cover */
.s4-media{ margin:0; }                  /* reset figure default margins */
.s4-photo{
  display:block;
  width:100%;
  aspect-ratio: 3 / 2;                  /* choose the crop you want (3:2 here) */
  object-fit: cover;                    /* fills the frame, crops evenly */
  border-radius: 0;                      /* match your style */
}



/* Decorative */
.about-s3{ position:relative; overflow:hidden; }
.about-s3 .container{ position:relative; z-index:1; }
.about-s3 .s4-deco{
  position:absolute; left:-6vw; bottom:0;
  width: clamp(160px,16vw,350px); opacity:.4; transform: rotate(56deg);
  pointer-events:none; user-select:none; z-index:0;
}

/* Responsive */
@media (max-width: 1024px){
  .about-s4-grid{ gap:28px; }
  .s4-title{ font-size:22px; }
}
@media (max-width: 900px){
  .about-s4-grid{ grid-template-columns: 1fr; }
  .s4-photo{ aspect-ratio: 16 / 9; }    /* a wider crop looks nicer stacked */
}

/* Logos row */
.logo-row{
  display:flex;
  flex-wrap:wrap;
  margin-top: 30px;
  gap:10px;
  row-gap:50px;
  justify-content:center;
  align-items:center;
}

/* Each logo sits in an equal-sized box */
.cert-logo{
  width: clamp(120px, 9vw, 200px);   /* same visual width per logo */
  height: 72px;                       /* uniform height */
  display:flex;
  align-items:center;
  justify-content:center;
  /* optional subtle styling:
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:8px;
  */
}

/* Contain the artwork, don’t crop */
.cert-logo-img{
  max-width:100%;
  max-height:100%;
  object-fit: contain;
  display:block;
  /* optional tone-down:
  filter: grayscale(1) opacity(.85);
  */
}

@media (max-width: 640px){
  .cert-logo{ height:56px; width: clamp(100px, 33vw, 150px); }
}

/* Stone slideshow */
.stone-rotator{
  position: relative;
  width: clamp(200px, 50vw, 480px);  /* responsive */
  aspect-ratio: 4 / 5;               /* pick a ratio close to your stones */
  margin: 8px auto 8px;
}
.stone-rotator img{
  position:absolute; inset:0;
  width:100%; height:auto; display:block;
  opacity:0; object-fit: contain; 
  animation: stoneFade 3.2s infinite linear; /* 0.8s x 4 = 3.2s */
}

/* Stagger each frame by 0.8s */
.stone-rotator img:nth-child(1){ animation-delay: 0s; }
.stone-rotator img:nth-child(2){ animation-delay: .8s; }
.stone-rotator img:nth-child(3){ animation-delay: 1.6s; }
.stone-rotator img:nth-child(4){ animation-delay: 2.4s; }

/* Show for 20%, fade out over next 10%, then stay hidden */
@keyframes stoneFade{
  0%   { opacity: 1; }
  20%  { opacity: 1; }   /* visible for ~0.64s */
  30%  { opacity: 0; }   /* cross-fade ~0.32s */
  100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce){
  .stone-rotator img{ animation:none; opacity:0; }
  .stone-rotator img:first-child{ opacity:1; }
}


/* ------------------- Contact ------------------- */
.contact-button {
    display: flex;
    height: 30px;
    border: none;
    background: rgba(102, 97, 109, 1);
    border-radius: 40px;
    color: rgba(244, 244, 244, 1);
    font-size: 14px;
    font-weight: 400;
    padding: 10px 18px;
    align-items: center;
    font-family:var(--font-sans);
}

/* ------------------- Login ------------------- */
/* Accessibility helper */
.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

html.login-no-scroll, body.login-no-scroll { overflow: hidden; }

/* background dimmer */
.login-mask{
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  opacity:0; visibility:hidden;
  transition:opacity .28s ease, visibility 0s linear .28s;
  z-index:9998;
}

/* right-side sheet */
.login-sheet{
  position:fixed; top:0; right:0; bottom:0;
  width:min(440px,92vw);
  background:#fff;
  box-shadow:-24px 0 64px rgba(0,0,0,.35);
  transform:translateX(105%);
  transition:transform .38s cubic-bezier(.22,.61,.36,1);
  z-index:9999;
  display:flex; flex-direction:column;
}
.login-close{margin:12px;align-self:flex-end;background:transparent;border:0;font-size:20px;line-height:1;cursor:pointer}
.login-sheet-body{min-height:0;flex:1;display:flex;flex-direction:column;padding:8px 16px 16px;gap:12px;overflow:hidden}
#loginIframe{display:block;width:100%;flex:1 1 auto;border:0;border-radius:8px;min-height:300px}
.login-fallback{display:grid;gap:12px;align-content:start}
.login-fallback .btn{display:inline-block;padding:.75rem 1rem;border-radius:999px;background:#4b5563;color:#fff;text-decoration:none;text-align:center}

/* OPEN STATE — toggled on <html> */
html.login-open .login-mask{opacity:1;visibility:visible;transition:opacity .28s ease,visibility 0s}
html.login-open .login-sheet{transform:translateX(0)}
/* optionally tint your top bar when open */
/*html.login-open .site-header .container.nav{*/
/*  background:rgba(0,0,0,.7);*/
/*  backdrop-filter:saturate(120%) blur(6px);*/
/*  transition:background-color .25s ease, backdrop-filter .25s ease;*/
/*}*/

@media (max-width:720px){ .login-sheet{ width:100%; } }
@media (prefers-reduced-motion:reduce){ .login-mask,.login-sheet{ transition:none!important } }


