/* =============================================
   TipTop Construction — Core Styles
   Colors from logo: navy #1a2744, red #c8102e
   ============================================= */

:root {
  --navy: #1a2744;
  --navy-light: #253560;
  --red: #c8102e;
  --red-dark: #a00d24;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --gray-100: #f1f3f8;
  --gray-200: #e2e6ef;
  --gray-600: #6b7280;
  --gray-800: #1f2937;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);
  --radius: 8px;
  --radius-lg: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Skip link ---- */
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--red); color: #fff;
  padding: 8px 16px; z-index: 9999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }

/* ---- Container ---- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 24px; padding: 12px 24px;
  max-width: 1160px; margin: 0 auto;
}

.logo-link { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-link img {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 4px 14px rgba(0,0,0,.35);
  padding: 2px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { color: #fff; font-size: 1.25rem; font-weight: 700; letter-spacing: .02em; }
.logo-text span { color: var(--red); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }

/* Primary nav */
.primary-nav { display: flex; gap: 4px; align-items: center; }
.primary-nav a {
  color: rgba(255,255,255,.85); font-size: .95rem; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: #fff; background: rgba(255,255,255,.12);
  text-decoration: none;
}

/* CTA button in nav */
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--red-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 6px;
  flex-direction: column; gap: 5px; width: 36px;
}
.nav-toggle span {
  display: block; height: 2px; background: #fff;
  border-radius: 2px; transition: transform .3s, opacity .3s;
}

/* Mobile nav open state */
.nav-open .primary-nav {
  display: flex; flex-direction: column;
  position: absolute; top: 88px; left: 0; right: 0;
  background: var(--navy); padding: 16px 24px;
  box-shadow: var(--shadow-lg);
  align-items: flex-start;
}
.nav-open .primary-nav a { width: 100%; padding: 12px 16px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 60%, #1f3a6e 100%);
  color: #fff; padding: 80px 0 72px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px; align-items: center;
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(200,16,46,.25); border: 1px solid rgba(200,16,46,.4);
  color: #ffb3be; font-size: .8rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 20px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }

.hero-desc {
  font-size: 1.15rem; color: rgba(255,255,255,.8);
  max-width: 560px; margin-bottom: 36px; line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: .95rem;
  padding: 13px 26px; border-radius: var(--radius);
  cursor: pointer; border: none; transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(200,16,46,.4); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); text-decoration: none; }

.hero-image { text-align: center; }
.hero-image img {
  width: 260px; height: 260px;
  border-radius: 50%;
  background: #fff;
  border: 5px solid var(--red);
  box-shadow: 0 0 0 3px rgba(255,255,255,.15), 0 12px 40px rgba(0,0,0,.45);
  padding: 4px;
}

/* Trust bar under hero */
.trust-bar {
  background: var(--red); color: #fff;
  padding: 16px 0;
}
.trust-bar-inner {
  display: flex; gap: 32px; justify-content: center;
  flex-wrap: wrap; align-items: center;
  max-width: 1160px; margin: 0 auto; padding: 0 24px;
}
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 600;
}
.trust-item svg { flex-shrink: 0; }

/* ============================================================
   SECTION SHARED
   ============================================================ */
section { padding: 72px 0; }
.section-label {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; color: var(--navy); line-height: 1.2;
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--gray-600);
  max-width: 600px; line-height: 1.7;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px; margin-top: 48px;
}

.service-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column; gap: 16px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.service-icon {
  width: 56px; height: 56px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.service-icon svg { color: #fff; }

.service-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.service-card p { font-size: .93rem; color: var(--gray-600); line-height: 1.6; }
.service-link { color: var(--red); font-weight: 600; font-size: .9rem; margin-top: auto; }

/* ============================================================
   PROVIA SECTION
   ============================================================ */
#provia {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
}
#provia .section-title { color: #fff; }
#provia .section-label { color: #ffb3be; }
#provia .section-desc { color: rgba(255,255,255,.75); }

.provia-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 48px;
}

.provia-features { display: flex; flex-direction: column; gap: 20px; }
.provia-feature {
  display: flex; gap: 16px; align-items: flex-start;
}
.provia-feature-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: rgba(200,16,46,.25); border: 1px solid rgba(200,16,46,.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.provia-feature-icon svg { color: #ffb3be; }
.provia-feature h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.provia-feature p { font-size: .9rem; color: rgba(255,255,255,.7); line-height: 1.6; }

.provia-callout {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 40px;
  text-align: center;
}
.provia-callout .brand-name {
  font-size: 2rem; font-weight: 900; letter-spacing: .04em;
  color: #fff; margin-bottom: 8px;
}
.provia-callout .brand-tag {
  font-size: .85rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 24px;
}
.provia-callout ul {
  list-style: none; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.provia-callout li { display: flex; gap: 10px; align-items: flex-start; font-size: .93rem; color: rgba(255,255,255,.8); }
.provia-callout li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   WHY CHOOSE US
   ============================================================ */
#why { background: var(--white); }

.why-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; margin-top: 48px;
}

.why-points { display: flex; flex-direction: column; gap: 28px; }
.why-point { display: flex; gap: 20px; }
.why-point-num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.why-point h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.why-point p { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

.why-cta-box {
  background: var(--gray-100); border-radius: var(--radius-lg);
  padding: 40px; text-align: center;
  border: 2px dashed var(--gray-200);
}
.why-cta-box h3 { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.why-cta-box p { color: var(--gray-600); margin-bottom: 28px; }
.phone-link {
  display: block; font-size: 2rem; font-weight: 900;
  color: var(--red); letter-spacing: .02em;
  margin-bottom: 20px; transition: color var(--transition);
}
.phone-link:hover { color: var(--red-dark); text-decoration: none; }

/* ============================================================
   SERVICE AREA
   ============================================================ */
#service-area { background: var(--off-white); }
.area-desc { max-width: 700px; }
.area-tags {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.area-tag {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: 24px; padding: 8px 18px;
  font-size: .88rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   FAQ
   ============================================================ */
#faq { background: var(--white); }
.faq-list {
  max-width: 760px; margin-top: 48px;
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden;
}
details {
  border-bottom: 1px solid var(--gray-200);
}
details:last-child { border-bottom: none; }
details summary {
  font-size: 1rem; font-weight: 600; color: var(--navy);
  padding: 20px 24px; cursor: pointer;
  list-style: none; display: flex;
  justify-content: space-between; align-items: center;
  user-select: none; transition: background var(--transition);
}
details summary:hover { background: var(--off-white); }
details summary::after { content: '+'; font-size: 1.4rem; color: var(--red); font-weight: 300; }
details[open] summary::after { content: '−'; }
details p {
  padding: 0 24px 20px; font-size: .95rem;
  color: var(--gray-600); line-height: 1.7;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: var(--red);
  padding: 64px 0; text-align: center; color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: 12px;
}
.cta-banner p { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.btn-white {
  background: #fff; color: var(--red); font-weight: 700;
}
.btn-white:hover { background: var(--off-white); text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.2); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 56px 0 32px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
.footer-brand h2 { color: #fff; font-size: 1.2rem; margin-bottom: 12px; }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 320px; }
.footer-brand .footer-phone {
  display: inline-block; margin-top: 16px;
  font-size: 1.3rem; font-weight: 800; color: var(--red);
  letter-spacing: .03em;
}
.footer-col h3 { color: #fff; font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a { color: rgba(255,255,255,.65); font-size: .9rem; transition: color var(--transition); }
.footer-col li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap;
  gap: 12px; font-size: .82rem;
}
.footer-bottom span { color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); text-decoration: none; }

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 60px 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,.8); max-width: 560px; }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 56px; padding: 72px 0;
}
.contact-info h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--off-white); border-radius: var(--radius);
  padding: 20px;
}
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card h4 { font-size: .85rem; font-weight: 700; color: var(--gray-600); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.contact-card p, .contact-card a { font-size: 1rem; font-weight: 600; color: var(--navy); }
.contact-card a:hover { color: var(--red); text-decoration: none; }

/* Contact form */
.contact-form-wrap h2 { font-size: 1.6rem; font-weight: 800; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .88rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  font-family: var(--font); font-size: .95rem; color: var(--gray-800);
  background: #fff; transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.1);
}
.form-group textarea { height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center; padding: 72px 0;
}
.about-image-wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  min-height: 380px;
}
.about-image-wrap img {
  width: 260px;
  border-radius: 50%;
  border: 5px solid var(--red);
  box-shadow: 0 0 0 3px rgba(26,39,68,.15), 0 8px 32px rgba(0,0,0,.15);
  padding: 4px;
  background: #fff;
}
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; margin-top: 36px;
}
.about-stat {
  background: var(--off-white); border-radius: var(--radius);
  padding: 20px; text-align: center;
}
.about-stat strong { display: block; font-size: 2rem; font-weight: 900; color: var(--navy); }
.about-stat span { font-size: .85rem; color: var(--gray-600); }

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.service-detail {
  padding: 64px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:nth-child(even) { background: var(--off-white); }
.service-detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.service-detail:nth-child(even) .service-detail-grid { direction: rtl; }
.service-detail:nth-child(even) .service-detail-grid > * { direction: ltr; }
.service-detail h2 { font-size: 1.8rem; font-weight: 800; color: var(--navy); margin-bottom: 16px; }
.service-detail p { color: var(--gray-600); line-height: 1.7; margin-bottom: 16px; }
.service-detail ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.service-detail li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--gray-600); }
.service-detail li::before { content: '✓'; color: var(--red); font-weight: 700; flex-shrink: 0; }
.service-visual {
  background: var(--gray-100); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px;
  padding: 48px; min-height: 280px;
  text-align: center;
}
.service-visual svg { color: var(--navy); opacity: .3; }
.service-visual span { font-size: 1rem; font-weight: 600; color: var(--navy); opacity: .5; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .provia-grid,
  .why-grid,
  .contact-grid,
  .about-grid,
  .service-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-detail:nth-child(even) .service-detail-grid { direction: ltr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .primary-nav { display: none; }
  .nav-toggle { display: flex; }
  .header-inner { position: relative; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .trust-bar-inner { flex-direction: column; gap: 12px; align-items: flex-start; }
}
