/* ================================
   Design Tokens
================================ */
:root {
  /* Brand */
  --primary: #1863B1;
  --button-hover: #155a9e;

  /* Palette */
  --background: #ffffff;
  --text: #1c1c1c;
  --muted: #6c757d;
  --accent-bg: #f3f6f9;

  /* Neutrals & Lines */
  --black: #000000;
  --white: #ffffff;
  --border: #dddddd;
  --input-border: #cccccc;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 6px 18px rgba(0, 0, 0, 0.12);
  --overlay: rgba(0, 0, 0, 0.6);
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
  --modal-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* ================================
   Base Reset
================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* ================================
   Header / Brand / Nav
================================ */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--white);
  padding: 20px 20px;
  color: var(--black);
}

.brand { display: flex; align-items: center; gap: 15px; font-family: ProximaNova, sans-serif; }
.logo { height: 50px; display: block; }
.brand p { text-transform: uppercase; font-weight: 600; font-size: 18px; line-height: 20px; }
.brand-tagline { font-weight: 300; color: #444; }

nav { display: flex; gap: 30px; align-items: center; }
nav a {
  color: var(--black);
  font-family: ProximaNova, sans-serif;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}
nav a:hover { color: var(--primary); }

nav button, .button {
  padding: 10px 20px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-family: ProximaNova, sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: var(--shadow-sm);
}
nav button:hover, .button:hover { background-color: var(--button-hover); }

/* ================================
   Sections
================================ */
section { padding: 40px 40px; margin: auto; }
section.alt { background-color: var(--accent-bg); }
section h2 { font-size: 32px; margin-bottom: 20px; }
section p { font-size: 18px; color: var(--muted); }

/* ================================
   Footer
================================ */
footer {
  background-color: var(--white);
  color: var(--black);
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

/* ================================
   Popup / Modal
================================ */
.popup-overlay {
  position: fixed; inset: 0;
  background: var(--overlay);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.popup-overlay.active { display: flex; }

.popup {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--modal-shadow);
  position: relative;
}
.popup h2 { margin-bottom: 20px; color: var(--primary); }
.popup form label { display: block; margin-bottom: 6px; font-weight: 600; }
.popup form input,
.popup form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 16px;
  border-radius: 6px;
  border: 1px solid var(--input-border);
  font-family: inherit;
}
.popup .close-btn {
  position: absolute; top: 12px; right: 18px;
  font-size: 26px; cursor: pointer; color: #666;
}

/* ================================
   Hero Section
================================ */
.home-hero {
  padding: 0;               
  margin: 0;
  width: 100%;
  height: clamp(400px, 75vh, 900px);
  overflow: hidden;  
}

.home-hero img {
  display: block;    
  width: 100%;
  height: 100%;
  object-fit: cover;   
  object-position: center;  
}

.hero-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6); 
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  white-space: nowrap;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #cccccc;
}

/* ================================
   About Section – Split Layout
================================ */
.about-section { display: flex; align-items: center; gap: 40px; }
.about-content { flex: 1; max-width: 60%; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { font-size: 18px; color: var(--black); margin-bottom: 18px; }
.about-image { flex: 1; display: flex; justify-content: center; }
.about-image img {
  max-width: 40%;
  border-radius: 12px;
}

/* ================================
    Services Section
================================ */
.service-grid {
  max-width: 1920px;
  margin: 2rem auto;
  padding: 0 24px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  justify-content: center;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.service-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
}
.service-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* subtle hover overlay, same vibe as portfolio */
.service-media::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover .service-media::after { opacity: 1; }

/* Body spacing to match */
.service-body {
  padding: 16px;
  flex-grow: 1;
}
.service-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 6px 0 8px;
  color: var(--text);
}
.service-body p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}
.service-link {
  margin-top: 10px;
  font-size: 13px;
  text-decoration: none;
  color: var(--primary);
}
.service-link:hover { text-decoration: underline; }

/* Responsive keeps parity with portfolio */
@media (max-width: 1200px) {
  .service-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

/* ================================
   Pricing Section
================================ */
.pricing-container {
  display: flex; justify-content: center; gap: 2rem; margin-top: 2rem; flex-wrap: wrap;
}
.pricing-card {
  background: var(--white);
  border: 2px solid transparent;           /* fixed thickness to avoid layout shift */
  border-radius: 12px;
  padding: 2rem;
  width: 280px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.pricing-card h3 { font-size: 1.5rem; margin-bottom: 1rem; }
.price { font-size: 2rem; font-weight: bold; margin: 1rem 0; color: var(--primary); }
.price span { font-size: 1rem; color: #666; }
.pricing-card ul { list-style: none; padding: 0; margin: 1.5rem 0; color: #555; }
.pricing-card ul li { margin: 0.5rem 0; }
.pricing-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s ease;
}
.pricing-btn:hover { background: var(--button-hover); }
.featured { transform: scale(1.05); box-shadow: var(--shadow-xl); }

/* ================================
   Portfolio Section
================================ */
#portfolio.case-studies {
  padding-top: 60px;
  padding-bottom: 60px;
}

.case-card {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: 50px;
  padding: 36px;
  align-items: center;
}

/* LEFT side */
.case-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.case-logo {
  max-width: 100px;
  height: auto;
  display: block;
}
.case-intro {
  font-size: 18px;
  color: var(--text);
  line-height: 1.6;
}

/* RIGHT side: collage like the reference */
.case-right {
  display: grid;
  grid-template-areas:
    ". desktop desktop ."
    "mobile desktop desktop ."
    "mobile providers rectangle rectangle"
    ". providers rectangle rectangle";
    
  grid-template-columns: 1.5fr 2.3fr 2.2fr 1fr;
  column-gap: 16px; row-gap: 8px;
  align-items: start;
}

/* Card frame + hover lift */
.case-right .mockup {
  position: relative;          
  background: #fff;         
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14), 0 2px 8px rgba(0,0,0,0.08);
  transition: transform .25s ease, box-shadow .25s ease;
  margin: 0;
}

.case-right .mockup::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.06);
}

.case-right .mockup:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.18), 0 4px 12px rgba(0,0,0,0.10);
}

.mockup img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Specific placements + aspect ratios */
.desktop-web    { grid-area: desktop;   aspect-ratio: 1366 / 847;}  
.mobile-web     { grid-area: mobile;    aspect-ratio: 390 / 844; }  
.providers-strip{ grid-area: providers; aspect-ratio: 4 / 4; }  
.rectangle-ad   { grid-area: rectangle; aspect-ratio: 1920 / 1080; }  

/* Responsive collapse for narrower desktops/tablets */
@media (max-width: 1100px) {
  .case-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .case-right {
    grid-template-areas:
      "desktop"
      "mobile"
      "providers"
      "rectangle";
    grid-template-columns: 1fr;
  }
  .case-logo { max-width: 220px; }
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-name {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

/* ===== Portfolio Carousel ===== */
.portfolio-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}
.portfolio-carousel .viewport {
  overflow: hidden;
}
.portfolio-carousel .track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}
.portfolio-carousel .slide {
  flex: 0 0 100%;
  /* keeps each slide full width and centers your existing card */
  display: flex;
  justify-content: center;
}

/* Arrows */
.portfolio-carousel .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 10;
}
.portfolio-carousel .arrow:hover {
  background: var(--button-hover);
  transform: translateY(-50%) scale(1.03);
}
.portfolio-carousel .arrow:active {
  transform: translateY(-50%) scale(0.97);
}
.portfolio-carousel .arrow.prev { left: -22px; }
.portfolio-carousel .arrow.next { right: -22px; }

.case-card { margin: 20px auto; }

/* ================================
   Contact Section
================================ */
.contact-inner { max-width: 920px; margin: 0 auto; text-align: center; } /* h2 sits outside */

.contact-item {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 14px 0;
  line-height: 1.4;
}
.contact-item svg {
  width: 22px; height: 22px; fill: var(--text);
  flex: 0 0 22px;
}
.contact-item strong { font-weight: 700; }

.contact-divider {
  border: none;
  border-top: 1px solid var(--text);
  margin: 22px auto;
  max-width: 300px;
}

.contact-social {
  display: flex; justify-content: center; gap: 14px; align-items: center; margin-top: 20px;
}
.social {
  width: 36px; height: 36px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
.social svg { width: 30px; height: 30px; fill: var(--text); }
.social:hover { transform: translateY(-2px); background: var(--primary); }

/* ================================
   Responsive
================================ */
@media (max-width: 900px) {
  .about-section { flex-direction: column; }
  .about-content { max-width: 100%; }
}

/* Desktop: keep original nav, hide mobile UI */
.hamburger,
.mobile-menu { display: none !important; }

header nav { display: flex; } /* ensure desktop nav shows */
