/* =========================
   Cupralis Main Styles
========================= */

:root {
  --blue:#005A9E;
  --azure:#0078D4;
  --green:#16C172;
  --dark:#003366;
  --white:#ffffff;
}

/* ===== BASE ===== */
html{
  min-height:100%;
  overflow-x:hidden;
  background:linear-gradient(135deg,var(--blue) 0%,var(--azure) 60%,var(--green) 100%);
}

body{
  margin:0;
  min-height:100dvh;
  padding-top:104px;
  font-family:'Segoe UI',Tahoma,sans-serif;
  background:linear-gradient(135deg,var(--blue) 0%,var(--azure) 60%,var(--green) 100%);
  color:var(--blue);
  overflow-x:hidden;
}

html[data-theme="dark"]{
  background:linear-gradient(135deg,var(--dark) 0%,#005A9E 60%,#16C172 100%);
}

body[data-theme="dark"]{
  background:linear-gradient(135deg,var(--dark) 0%,#005A9E 60%,#16C172 100%);
  color:var(--white);
}

/* =========================
   HEADER
========================= */
.main-header{
  height:104px;
  padding:0 32px 0 6%;
  background:#fff;
  box-shadow:0 2px 16px rgba(0,0,0,0.06);
  display:grid;
  grid-template-columns:auto 1fr auto auto;
  align-items:center;
  gap:32px;
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:100;
}

body[data-theme="dark"] .main-header{
  background:#0f1f2e;
  box-shadow:0 2px 16px rgba(0,0,0,0.4);
}

/* ===== LOGO ===== */
.header-left{
  display:flex;
  align-items:center;
}

.logo-link{
  text-decoration:none;
  display:block;
}

.header-logo{
  width:280px;
  height:100%;
  display:block;
  object-fit:contain;
}

/* =========================
   NAVIGATION
========================= */
.main-nav{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:56px;
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
}

.main-nav a{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:4px;
  text-decoration:none;
  font-size:.85rem;
  font-weight:500;
  color:#005A9E;
  position:relative;
}

.main-nav a svg{
  width:22px;
  height:22px;
  stroke:currentColor;
  fill:none;
  stroke-width:2;
  transition:stroke .2s, transform .2s;
}

.main-nav a:hover svg{
  stroke:#16C172;
  transform:translateY(-1px);
}

.main-nav a::after{
  content:'';
  position:absolute;
  bottom:-8px;
  left:0;
  width:0;
  height:2px;
  background:#16C172;
  transition:width .2s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after,
.main-nav a[aria-current="page"]::after{
  width:100%;
}

body[data-theme="dark"] .main-nav a{
  color:#ffffff;
}

/* =========================
   THEME TOGGLE
========================= */
.theme-switch{
  display:flex;
  align-items:center;
  justify-self:end;
  background:#f4f8fb;
  border-radius:16px;
  padding:6px 14px;
  border:1.5px solid #e0e7ef;
}

body[data-theme="dark"] .theme-switch{
  background:#1a2a3a;
  border-color:#22334a;
}

.theme-switch input{
  width:42px;
  height:22px;
  appearance:none;
  background:#ccc;
  border-radius:20px;
  position:relative;
  cursor:pointer;
}

.theme-switch input:checked{
  background:#0078D4;
}

.theme-switch input::before{
  content:'';
  position:absolute;
  width:18px;
  height:18px;
  top:2px;
  left:2px;
  background:#fff;
  border-radius:50%;
  transition:.3s;
}

.theme-switch input:checked::before{
  transform:translateX(20px);
}

/* =========================
   HERO
========================= */
.hero{
  min-height:80vh;
  padding:48px 6%;
  position:relative;
  display:flex;
  align-items:center;
}

.hero::before{
  content:'';
  position:absolute;
  width:900px;
  height:900px;
  background:radial-gradient(circle,var(--green),transparent 60%);
  top:-300px;
  right:-300px;
  opacity:.25;
}

.hero-inner{
  max-width:1100px;
  position:relative;
  z-index:1;
}

.hero h1{
  font-size:3.2rem;
  color:#fff;
  margin:.3em 0;
}

.hero-subtitle{
  font-size:1.35rem;
  max-width:720px;
  line-height:1.5;
  color:#fff;
  margin:.6em 0 0;
}

.hero-subtitle span{
  opacity:.9;
  font-weight:400;
}

.cta a{
  display:inline-block;
  margin-top:1.2em;
  padding:10px 24px;
  background:linear-gradient(135deg,var(--azure),var(--green));
  color:#fff;
  border-radius:12px;
  font-weight:600;
  text-decoration:none;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}

/* =========================
   SECTIONS
========================= */
section{
  padding:60px 6%;
  position:relative;
}

.light{
  background:rgba(255,255,255,.9);
}

body[data-theme="dark"] .light{
  background:rgba(15,30,40,.95);
}

.light::before{
  content:'';
  position:absolute;
  top:-40px;
  left:0;
  width:100%;
  height:80px;
  background:inherit;
  transform:skewY(-4deg);
}

h2{
  font-size:2.2rem;
  color:var(--azure);
  margin-bottom:.7em;
}

body[data-theme="dark"] h2{
  color:#7ecbff;
}

/* =========================
   SERVICES
========================= */
.services{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:2.2em;
}

.card{
  padding:1.2em;
  border-radius:16px;
  background:rgba(255,255,255,.65);
  backdrop-filter:blur(10px);
  box-shadow:0 12px 24px rgba(0,0,0,.10);
}

body[data-theme="dark"] .card{
  background:rgba(20,40,50,.6);
}

.card h3{
  margin-top:0;
  color:var(--azure);
}

body[data-theme="dark"] .card h3{
  color:#9dd6ff;
}

/* =========================
   CONTACT & FOOTER
========================= */
.contact{
  text-align:center;
}

.contact p{
  max-width:600px;
  margin:0 auto 2em;
}

footer{
  padding:1em;
  text-align:center;
  font-size:.9rem;
  opacity:.8;
  color:#fff;
}

/* =========================
   MOBILE MENU
========================= */
.menu-toggle{
  display:none;
  background:none;
  border:none;
  font-size:1.6rem;
  cursor:pointer;
  color:#005A9E;
}

body[data-theme="dark"] .menu-toggle{
  color:#ffffff;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width:900px){
  body{
    padding-top:92px;
  }

  .main-header{
    grid-template-columns:auto 1fr auto;
    padding:12px 16px;
    gap:12px;
    height:auto;
  }

  .header-logo{
    width:160px;
    height:auto;
  }

  .main-nav{
    display:none;
    position:absolute;
    top:72px;
    left:0;
    right:0;
    transform:none;
    background:#ffffff;
    flex-direction:column;
    padding:16px 0;
    box-shadow:0 12px 30px rgba(0,0,0,.15);
  }

  body[data-theme="dark"] .main-nav{
    background:#0f1f2e;
  }

  .main-nav.open{
    display:flex;
  }

  .menu-toggle{
    display:block;
  }

  .main-nav a{
    padding:12px 0;
  }
}
