/* assets/style.css */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: #e8eefc;
  --muted: rgba(232,238,252,0.70);
  --line: rgba(255,255,255,0.12);

  --accent: #2dd4bf;
  --accent2: #38bdf8;

  --shadow: 0 14px 38px rgba(0,0,0,0.35);
  --radius: 18px;

  --max: 1100px;
}

*{
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 600px at 20% 10%, rgba(56,189,248,0.25), transparent 60%),
    radial-gradient(900px 600px at 90% 30%, rgba(45,212,191,0.20), transparent 55%),
    linear-gradient(180deg, #050914 0%, #0b1220 45%, #060a12 100%);
}

a{
  color: inherit;
  text-decoration: none;
}

.container{
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  background: rgba(10, 15, 25, 0.6);
}

.topbar-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.logo-area{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #041018;
  box-shadow: var(--shadow);
}

.company-name{
  font-weight: 800;
  letter-spacing: 0.2px;
}

.company-tagline{
  font-size: 13px;
  color: var(--muted);
}

.nav{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a{
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--muted);
  transition: 0.2s ease;
}

.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

.btn-nav{
  background: rgba(45,212,191,0.18);
  color: var(--text) !important;
  border: 1px solid rgba(45,212,191,0.35);
}

/* Hero */
.hero{
  padding: 60px 0 40px;
}

.hero-inner{
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
  align-items: start;
}

.hero-text h1{
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.hero-text p{
  color: var(--muted);
  line-height: 1.6;
  font-size: 16px;
  max-width: 62ch;
}

.hero-actions{
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary{
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #041018;
  box-shadow: var(--shadow);
}

.btn-primary:hover{
  transform: translateY(-1px);
}

.btn-secondary{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-secondary:hover{
  background: rgba(255,255,255,0.10);
}

.hero-mini{
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 10px;
}

.mini-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 16px;
}

.mini-title{
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.mini-value{
  font-weight: 700;
  font-size: 14px;
}

/* Right hero box */
.hero-box{
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-box-inner{
  padding: 20px;
}

.hero-box h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.muted{
  color: var(--muted);
}

.profile-grid{
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.profile-item{
  display: grid;
  gap: 4px;
  padding: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.profile-item .label{
  font-size: 12px;
  color: var(--muted);
}

.profile-item .value{
  font-weight: 700;
}

/* Sections */
.section{
  padding: 56px 0;
}

.section.alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header{
  max-width: 80ch;
  margin-bottom: 22px;
}

.section-header h2{
  margin: 0 0 8px;
  font-size: 28px;
}

.section-header p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.card{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.card h3{
  margin: 0 0 10px;
}

.card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.two-col{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
}

.panel{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.panel h2{
  margin: 0 0 10px;
}

.panel p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.service-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0,1fr));
  gap: 14px;
}

.service-card{
  border-radius: var(--radius);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  padding: 18px;
  transition: 0.2s ease;
}

.service-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
}

.service-card h3{
  margin: 0 0 10px;
}

.service-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.value-list{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
}

.value-item{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.value-item h3{
  margin: 0 0 10px;
}

.value-item p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.bullet-list{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.9;
  font-size: 16px;
}

/* Contact */
.contact-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}

.contact-card{
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.contact-actions{
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

/* Footer */
.footer{
  border-top: 1px solid var(--line);
  padding: 24px 0;
  background: rgba(0,0,0,0.2);
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

/* Responsive */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns: 1fr;
  }
  .service-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .cards{
    grid-template-columns: 1fr;
  }
  .two-col{
    grid-template-columns: 1fr;
  }
  .contact-grid{
    grid-template-columns: 1fr;
  }
  .hero-mini{
    grid-template-columns: 1fr;
  }
}


/* Active nav state */
.nav a.active{
  color: var(--text);
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--line);
}

/* Page header block */
.page-hero{
  padding: 44px 0 18px;
}
.page-hero h1{
  margin: 0 0 10px;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 80ch;
}

/* Form styling */
.form{
  display: grid;
  gap: 12px;
  max-width: 720px;
}
.field{
  display: grid;
  gap: 6px;
}
.field label{
  font-size: 13px;
  color: var(--muted);
}
.field input,
.field textarea,
.field select{
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  outline: none;
}
.field textarea{
  min-height: 130px;
  resize: vertical;
}
.form-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 760px){
  .form-row{ grid-template-columns: 1fr; }
}

.notice{
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(45,212,191,0.12);
}
.notice.error{
  background: rgba(248,113,113,0.12);
}


/* Logo image inside badge */
.logo-img{
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.logo-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;   /* keeps aspect ratio */
  padding: 6px;          /* breathing room so it doesn't touch edges */
  display: block;
}



/* Profile logo card (inside profile-grid) */
.profile-logo{
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 16px;
  border-radius: 16px;

  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
}

/* Logo image styling */
.profile-logo img{
  width: 100%;
  max-width: 220px;     /* controls how big it can be */
  height: auto;

  object-fit: contain;
  display: block;

  padding: 10px;
  border-radius: 14px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);

  /* subtle "pop" effect */
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}



/* Hero picture inside the right box */
.hero-photo{
  width: 100%;
  height: 170px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  margin-bottom: 14px;
}

.hero-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.05);
}

/* Photo grid on homepage */
.photo-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.photo-card{
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
  transition: 0.2s ease;
}

.photo-card:hover{
  transform: translateY(-2px);
  background: rgba(255,255,255,0.07);
}

.photo-card img{
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.photo-caption{
  padding: 14px;
}

.photo-caption h3{
  margin: 0 0 6px;
  font-size: 16px;
}

.photo-caption p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* Responsive photo grid */
@media (max-width: 980px){
  .photo-grid{
    grid-template-columns: 1fr;
  }
  .photo-card img{
    height: 210px;
  }
}


/* ---------------------------
   MOBILE FRIENDLY PATCH
   (Add at the very bottom)
---------------------------- */

/* Prevent random horizontal scrolling on mobile */
html, body{
  overflow-x: hidden;
}

/* Images never overflow containers */
img{
  max-width: 100%;
  height: auto;
}

/* Make taps easier (mobile-friendly touch targets) */
.nav a,
.btn-primary,
.btn-secondary,
.btn-nav{
  min-height: 44px;
}

/* --- Burger nav (no JS) --- */
.nav{
  position: relative; /* needed for dropdown positioning */
}

/* Hidden checkbox (controls menu open/close) */
.nav-toggle{
  display: none;
}

/* Burger button */
.nav-burger{
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

/* Burger lines */
.nav-burger span{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(232,238,252,0.85);
  border-radius: 2px;
}

/* Wrap your links in .nav-links (we’ll update header.php) */
.nav-links{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Phone layout */
@media (max-width: 760px){

  /* Slightly reduce side padding */
  .container{
    width: min(var(--max), calc(100% - 24px));
  }

  /* A bit tighter spacing */
  .hero{
    padding: 46px 0 28px;
  }
  .section{
    padding: 44px 0;
  }
  .section-header h2{
    font-size: 24px;
  }

  /* Show burger, hide links until toggled */
  .nav-burger{
    display: inline-flex;
  }

  .nav-links{
    display: none;
    position: absolute;
    right: 0;
    top: 54px;
    width: min(320px, calc(100vw - 28px));
    padding: 12px;

    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(10, 15, 25, 0.92);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);

    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    z-index: 80;
  }

  .nav-toggle:checked ~ .nav-links{
    display: flex;
  }

  .nav-links a{
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
  }

  /* Make button style still look like button in dropdown */
  .nav-links .btn-nav{
    border: 1px solid rgba(45,212,191,0.35);
    background: rgba(45,212,191,0.16);
  }

  /* Single-column layouts on small screens */
  .hero-inner{
    grid-template-columns: 1fr;
  }

  .hero-mini{
    grid-template-columns: 1fr;
  }

  .service-grid{
    grid-template-columns: 1fr; /* more readable than 2 on phones */
  }

  .cards{
    grid-template-columns: 1fr;
  }

  .two-col{
    grid-template-columns: 1fr;
  }

  .value-list{
    grid-template-columns: 1fr;
  }

  .contact-grid{
    grid-template-columns: 1fr;
  }

  .photo-grid{
    grid-template-columns: 1fr;
  }
}

