/* =========================================================
   TITAN HERMETIK — stylesheet
   Built to match "Design System Inspired by Titan Hermetik"
   ========================================================= */

:root{
  /* Primary */
  --blue-primary: #0D57A5;
  --blue-deep: #06366B;
  --navy: #181F25;

  /* Accent */
  --red: #EB3F33;
  --red-hover: #DC2626;
  --red-active: #C81F1A;

  /* Interactive */
  --focus-gray: #70808F;

  /* Neutrals */
  --white: #FFFFFF;
  --light-gray: #F3F5F7;
  --border-gray: #E0E6EB;
  --medium-gray: #CCCCCC;

  /* Fonts */
  --font: 'Mulish', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;

  --container-w: 1280px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 24px;

  /* Shadows */
  --shadow-raised: rgba(0,0,0,.05) 0px 1px 2px 0px;
  --shadow-elevated: 0px 4px 12px rgba(0,0,0,.1), 0px 2px 4px rgba(0,0,0,.06);
  --shadow-nav: 0px 10px 15px -3px rgba(0,0,0,.1), 0px 4px 6px -4px rgba(0,0,0,.1);
  --shadow-focus: 0px 0px 0px 3px rgba(13,87,165,.1);
  --shadow-phone: 0px 4px 12px rgba(235,63,51,.3);

  --transition: 0.2s ease;
}

*{ margin:0; padding:0; box-sizing:border-box; }

html{ scroll-behavior:smooth; overflow-x:hidden; max-width:100vw; }

body{
  font-family: var(--font);
  color: var(--navy);
  font-size:14px;
  line-height:20px;
  background: var(--white);
  overflow-x:hidden;
}

img{ max-width:100%; display:block; }
a{ text-decoration:none; color:inherit; }
ul{ list-style:none; }

h1,h2,h3,h4{
  font-family: var(--font);
  color: var(--navy);
  margin:0;
}
h1{ font-size:60px; font-weight:800; line-height:60px; }
h2{ font-size:36px; font-weight:800; line-height:40px; }
h3{ font-size:20px; font-weight:700; line-height:28px; }

.container{
  width:100%;
  max-width: var(--container-w);
  margin:0 auto;
  padding: 0 40px;
}

/* Reveal animation helper */
.reveal{
  opacity:0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.is-visible{ opacity:1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* Focus states — accessibility */
a:focus-visible, button:focus-visible{
  outline:none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

/* =========================================================
   HEADER / NAVIGATION
   ========================================================= */
.site-header{
  position:fixed;
  top:0; left:0; right:0;
  z-index:1000;
  background: var(--blue-primary);
  height:64px;
  max-width:100vw;
  overflow-x:hidden;
  box-shadow: var(--shadow-nav);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
  flex-wrap:nowrap;
}
.logo{
  display:flex;
  align-items:center;
  gap:8px;
  flex-shrink:1;
  min-width:0;
  margin-right:40px;
}
.logo-text{
  font-weight:800;
  font-size:18px;
  color:#fff;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.logo-accent{ color: var(--red); }

.main-nav ul{ display:flex; gap:4px; }
.main-nav a{
  font-size:14px;
  font-weight:600;
  color: rgba(255,255,255,.8);
  padding:8px 16px;
  border-radius: var(--radius-sm);
  height:44px;
  display:flex;
  align-items:center;
  transition: color var(--transition), background var(--transition);
  border-bottom:3px solid transparent;
}
.main-nav a:hover{ color:#fff; background: rgba(255,255,255,.1); }
.main-nav a.active{ color:#fff; border-bottom:3px solid #fff; background:transparent; }

.header-actions{ display:flex; align-items:center; gap:14px; }
.phone-btn{
  display:flex;
  align-items:center;
  gap:8px;
  background: var(--red);
  color:#fff;
  font-size:14px;
  font-weight:600;
  padding:12px 16px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-phone);
  transition: background var(--transition);
  white-space:nowrap;
}
.phone-btn:hover{ background: var(--red-hover); }

.lang-switch{
  width:36px; height:36px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.35);
  background:transparent;
  color:#fff;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  flex-shrink:0;
  transition: background var(--transition);
}
.lang-switch:hover{ background: rgba(255,255,255,.12); }

.nav-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:none;
  cursor:pointer;
  padding:8px;
}
.nav-toggle span{ width:24px; height:2px; background:#fff; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle.is-open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity:0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  padding-top:64px;
  background:
    linear-gradient(120deg, rgba(6,54,107,.90) 0%, rgba(13,87,165,.78) 55%, rgba(13,87,165,.58) 100%),
    url("../images/hero-bg.jpg") center center / cover no-repeat;
  background-color: var(--blue-deep);
}
.hero-overlay{
  position:absolute;
  left:0; right:0; bottom:0;
  height:140px;
  background: linear-gradient(to top, var(--light-gray), transparent);
  pointer-events:none;
}
.hero-content{
  position:relative;
  z-index:2;
  padding: 96px 40px 96px;
  max-width:680px;
}
.eyebrow{
  font-size:14px;
  font-weight:700;
  letter-spacing:1.5px;
  color: var(--red);
  margin-bottom:16px;
  text-transform:uppercase;
}
.eyebrow.center{ text-align:center; }

.hero h1{
  color:#fff;
  font-size: clamp(28px, 4.5vw, 60px);
  line-height:1.1;
  margin-bottom:20px;
}
.hero-sub{
  color: rgba(255,255,255,.88);
  font-size:16px;
  line-height:24px;
  max-width:520px;
  margin-bottom:32px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  font-size:16px;
  line-height:24px;
  padding:12px 28px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  border:none;
  cursor:pointer;
}
.btn--primary{
  background: var(--red);
  color:#fff;
}
.btn--primary:hover{ background: var(--red-hover); }
.btn--primary:active{ background: var(--red-active); }

.btn--secondary{
  background:#fff;
  color: var(--navy);
  border:2px solid var(--border-gray);
}
.btn--secondary:hover{ background: var(--light-gray); border-color: var(--blue-primary); }

/* =========================================================
   STATS
   ========================================================= */
.stats{ background: var(--white); padding: 64px 0; }
.stats-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:24px;
  text-align:center;
}
.stat-item{ padding:24px; }
.stat-number{
  display:block;
  font-size:48px;
  font-weight:800;
  line-height:1.1;
  color: var(--blue-primary);
}
.stat-plus{ color: var(--red); }
.stat-label{
  display:block;
  font-size:14px;
  color: var(--focus-gray);
  margin-top:8px;
  line-height:20px;
}

/* =========================================================
   ABOUT / SPECIALISTS
   ========================================================= */
.about{ padding: 80px 0; background: var(--light-gray); }
.about-inner{ max-width:800px; margin:0 auto; text-align:center; }
.about h2{ font-size: clamp(28px, 3.5vw, 36px); margin-bottom:16px; }
.section-lead{
  color: var(--focus-gray);
  margin-bottom:32px;
  font-size:16px;
  line-height:24px;
}
.checklist-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
  text-align:left;
  margin-bottom:28px;
}
.check-item{
  display:flex;
  align-items:center;
  gap:12px;
  background: var(--white);
  border:1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding:16px 20px;
  font-size:14px;
  font-weight:600;
  box-shadow: var(--shadow-raised);
}
.check-icon{
  flex-shrink:0;
  width:20px; height:20px;
  color: var(--blue-primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
}
.fine-note{ font-size:12px; line-height:16px; color: var(--focus-gray); }

/* =========================================================
   WHAT WE DO
   ========================================================= */
.what-we-do{ background: var(--white); padding: 80px 0; }
.section-title{
  text-align:center;
  font-size: clamp(28px, 3.5vw, 36px);
  margin-bottom:48px;
}
.section-title--left{ text-align:left; }
.section-title--light{ color:#fff; }

.cards-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:24px;
}
.do-card{
  background: var(--light-gray);
  border:1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding:28px;
  box-shadow:none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.do-card:hover{
  border-color: var(--blue-primary);
  box-shadow: 0px 4px 12px rgba(13,87,165,.1);
}
.do-icon{
  width:32px; height:32px;
  color: var(--blue-primary);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:16px;
}
.do-card h3{ font-size:20px; line-height:28px; margin-bottom:10px; }
.do-card p{ color: var(--focus-gray); font-size:14px; line-height:20px; margin-bottom:16px; }
.dash-list li{
  position:relative;
  padding-left:16px;
  font-size:14px;
  line-height:20px;
  color: var(--navy);
  margin-bottom:6px;
}
.dash-list li::before{
  content:"•";
  color: var(--blue-primary);
  position:absolute;
  left:0;
  font-weight:700;
}

/* =========================================================
   WHY CHOOSE US
   ========================================================= */
.why-us{ background: var(--white); padding: 80px 0; }
.why-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.why-item{
  display:flex;
  align-items:center;
  gap:14px;
  background: var(--white);
  border:1px solid var(--border-gray);
  border-radius: var(--radius-sm);
  padding:20px;
  font-size:14px;
  font-weight:600;
  box-shadow: var(--shadow-raised);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.why-item:hover{ box-shadow: var(--shadow-elevated); border-color: var(--blue-primary); }
.why-icon{
  flex-shrink:0;
  width:32px; height:32px;
  color: var(--blue-primary);
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
}

/* =========================================================
   SERVICES (deep blue)
   ========================================================= */
.services{ background: var(--blue-deep); padding: 96px 0; }
.services-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.service-card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-sm);
  padding:32px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover{ background: rgba(255,255,255,.1); transform: translateY(-2px); }
.service-icon{
  width:32px; height:32px;
  color: var(--red);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:18px;
}
.service-card h3{ color:#fff; font-size:20px; line-height:28px; margin-bottom:14px; }
.dash-list--light li{ color: rgba(255,255,255,.8); }
.dash-list--light li::before{ color: var(--red); }

/* =========================================================
   PROCESS
   ========================================================= */
.process{ background: var(--light-gray); padding: 96px 0; }
.process-lead{
  text-align:center;
  max-width:640px;
  margin:0 auto 56px;
  color: var(--focus-gray);
  font-size:16px;
  line-height:24px;
}
.process-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:48px 24px;
}
.process-num{
  display:block;
  font-weight:800;
  font-size:36px;
  color: var(--border-gray);
  line-height:1;
  margin-bottom:12px;
}
.process-item h4{
  font-size:14px;
  font-weight:700;
  letter-spacing:.5px;
  margin-bottom:8px;
  color: var(--blue-primary);
}
.process-item p{ font-size:14px; line-height:20px; color: var(--focus-gray); }

/* =========================================================
   GALLERY
   ========================================================= */
.gallery{ background: var(--white); padding: 96px 0; }
.gallery-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:24px;
}
.gallery-item{
  aspect-ratio: 4/3;
  overflow:hidden;
  border-radius: var(--radius-sm);
  background: var(--light-gray);
  border:1px solid var(--border-gray);
}
.gallery-item picture{ display:block; width:100%; height:100%; }
.gallery-item img{ width:100%; height:100%; object-fit:cover; transition: transform .4s ease; }
.gallery-item:hover img{ transform: scale(1.05); }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ background: var(--white); padding:96px 0; }
.contact-inner{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:48px;
  margin-top:40px;
  align-items:stretch;
}
.contact-info{
  display:flex;
  flex-direction:column;
  gap:28px;
  background:none;
  border-radius:0;
  padding:0;
}
.contact-row{ display:flex; align-items:flex-start; gap:16px; }
.contact-icon{
  width:40px; height:40px;
  flex-shrink:0;
  border-radius: var(--radius-sm);
  background: var(--blue-primary);
  display:flex; align-items:center; justify-content:center;
}
.contact-row h4{ color: var(--navy); font-size:16px; font-weight:700; margin-bottom:4px; }
.contact-row p{ color: var(--focus-gray); font-size:14px; line-height:20px; }
.contact-row a{ color: var(--blue-primary); font-weight:600; }
.contact-map{ position:relative; border-radius: var(--radius-sm); overflow:hidden; min-height:320px; height:100%; border:1px solid var(--border-gray); }
.contact-map iframe{ display:block; width:100%; height:100%; min-height:320px; border:0; }
.map-external-link{
  position:absolute;
  top:12px; left:12px;
  background:#fff;
  color: var(--navy);
  font-size:13px;
  font-weight:600;
  padding:8px 12px;
  border-radius:4px;
  box-shadow: var(--shadow-elevated);
  text-decoration:none;
  z-index:2;
}
.map-external-link:hover{ background: var(--light-gray); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer{ background: var(--blue-deep); color:#fff; }
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 40px;
  flex-wrap:wrap;
  gap:16px;
}
.footer-brand p{ font-size:12px; color: rgba(255,255,255,.6); margin-top:4px; }
.footer-phone{ display:flex; align-items:center; gap:8px; font-size:14px; color: rgba(255,255,255,.85); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.12); padding: 16px 40px; text-align:center; }
.footer-bottom p{ font-size:12px; color: rgba(255,255,255,.5); }

/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top{
  position:fixed;
  right:24px; bottom:24px;
  width:48px; height:48px;
  border-radius:50%;
  background: var(--red);
  color:#fff;
  display:flex; align-items:center; justify-content:center;
  font-size:20px;
  box-shadow: var(--shadow-phone);
  opacity:0;
  visibility:hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition), background var(--transition);
  z-index:900;
}
.back-to-top:hover{ background: var(--red-hover); }
.back-to-top.is-visible{ opacity:1; visibility:visible; transform:translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1023px){
  .container{ padding: 0 24px; }
  h1{ font-size:48px; line-height:1.15; }
  h2{ font-size:32px; line-height:1.2; }
  .cards-grid{ grid-template-columns:1fr; }
  .why-grid{ grid-template-columns: 1fr 1fr; }
  .services-grid{ grid-template-columns: 1fr 1fr; }
  .process-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .contact-inner{ grid-template-columns: 1fr; }
  .stats-grid{ gap:20px; }
  .about, .what-we-do, .why-us, .process, .gallery, .contact{ padding:64px 0; }
  .services{ padding:64px 0; }
}

@media (max-width: 767px){
  .container{ padding: 0 16px; }
  h1{ font-size:28px; line-height:1.2; }
  h2{ font-size:28px; }

  .main-nav{
    position:fixed;
    top:64px; left:0; right:0;
    background: var(--blue-primary);
    max-height:0;
    overflow:hidden;
    transition: max-height var(--transition);
  }
  .main-nav.is-open{ max-height:400px; }
  .main-nav ul{ flex-direction:column; padding: 8px 16px 16px; gap:0; }
  .main-nav a{
    display:flex;
    height:44px;
    border-bottom:1px solid rgba(255,255,255,.1);
    border-radius:0;
  }
  .main-nav a.active{ border-bottom:1px solid rgba(255,255,255,.1); }
  .nav-toggle{ display:flex; flex-shrink:0; }
  .phone-btn span{ display:none; }
  .phone-btn{
    padding:0;
    width:40px; height:40px;
    justify-content:center;
    border-radius:50%;
    flex-shrink:0;
  }
  .header-actions{ gap:8px; }
  .lang-switch{ flex-shrink:0; }
  .logo{ margin-right:0; }

  .stats-grid{ grid-template-columns: 1fr 1fr; gap:16px; }
  .checklist-grid{ grid-template-columns: 1fr; }
  .why-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .process-grid{ grid-template-columns: 1fr; }
  .gallery-grid{ grid-template-columns: 1fr 1fr; }
  .hero-content{ padding: 48px 16px 80px; }
  .btn{ width:100%; }
  .about, .what-we-do, .why-us, .process, .gallery, .contact{ padding:48px 0; }
  .services{ padding:48px 0; }

  .footer-inner{
    flex-direction:column;
    align-items:flex-start;
    padding: 32px 20px;
    gap:20px;
  }
  .footer-phone{ padding-bottom:4px; }
  .footer-bottom{ padding: 16px 20px 28px; }
}

@media (max-width: 480px){
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .gallery-grid{ grid-template-columns: 1fr; }
  .stat-number{ font-size:36px; }
  .header-inner{ height:56px; }
  .site-header{ height:56px; }
  .hero{ padding-top:56px; }

  .logo-text{ font-size:15px; }
  .header-actions{ gap:6px; }
  .phone-btn{ padding:0; width:36px; height:36px; }
  .phone-btn svg{ flex-shrink:0; }
  .lang-switch{ width:30px; height:30px; font-size:10px; }
  .nav-toggle{ padding:6px; }
}
