/* =======================
   SELF-HOSTED FONTS (with metric overrides)
======================= */

@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

@font-face {
  font-family: 'Lato';
  src: url('/fonts/lato-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
  size-adjust: 102%;
}

@font-face {
  font-family: 'Mulish';
  src: url('/fonts/mulish-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 92%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 101%;
}

@font-face {
  font-family: 'Mulish';
  src: url('/fonts/mulish-bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  ascent-override: 92%;
  descent-override: 20%;
  line-gap-override: 0%;
  size-adjust: 101%;
}

:root {
  --mobile-content-width: 360px;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

/* =======================
   GLOBAL RESET
======================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Lato', Arial, sans-serif;
  background: #0f1b36;
  color: #fff;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Mulish', Arial, sans-serif;
  color: #ffb84d;
  line-height: 1.2;
  margin-bottom: 15px;
}

/* =======================
   UNIVERSAL PAGE CONTAINER
======================= */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* =======================
   NAVBAR (merged additions)
======================= */

.nav-links a {
  letter-spacing: 0.5px;
}

/* =======================
   HERO (merged additions)
======================= */

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden; /* keeps your gradient + bg tidy */
}

.hero-inner {
  max-width: 750px;
  width: 100%;
}

.hero-inner h1 {
  margin-bottom: 20px;
}

.hero-inner p {
  margin-bottom: 25px;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* =======================
   BUTTONS (merged additions)
======================= */

.btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  border-radius: 4px;
  transition: 0.25s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}

/* =======================
   MOBILE HERO ALIGNMENT
======================= */

@media (max-width: 768px) {
  .hero,
  .hero-base {
    align-items: center;
    text-align: center;
  }

  .hero-inner {
    padding-left: 0;
    margin: 0 auto;
  }

  .hero-buttons {
    justify-content: center;
    width: 100%;
  }
}


/* =======================
   NAVBAR
======================= */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: #0f1b36;
;
  padding: 15px 0;
  z-index: 1000;
  backdrop-filter: blur(6px);
}

.container-nav {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  width: 220px;
  transition: opacity 0.3s ease-in-out;
}

.logo:hover img {
  content: url("images/ccLogoTransHover.png");
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.5px;
}

.nav-links a:hover {
  color: #ffb84d;
}

/* =======================
   HAMBURGER MENU
======================= */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.hamburger span {
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0; /* full screen */
    height: 100vh;
    width: 100vw;
    background: #0f1b36;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.4rem;
  }

  .hamburger {
    display: flex;
  }
}


/* =======================
   HERO SECTIONS (Optimised)
======================= */

/* Base hero styling for ALL pages */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 20px;
  min-height: 300px;
  color: #fff;
  overflow: visible;
}

/* Home page hero (full screen) */
.hero-base {
  min-height: 85vh;
  border-top: 1px solid #ffb84d;
  border-bottom: 1px solid #ffb84d;
}

/* Standard hero sections (services, portfolio, contact, privacy) */
.hero-services,
.hero-portfolio,
.hero-contact,
.hero-privacy {
  border-top: 1px solid #ffb84d;
  border-bottom: 1px solid #ffb84d;
}

/* Background via <picture> */
.hero-bg,
.hero-services-bg,
.hero-portfolio-bg,
.hero-contact-bg,
.hero-privacy-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img,
.hero-services-bg img,
.hero-portfolio-bg img,
.hero-contact-bg img,
.hero-privacy-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlay */
.hero::before,
.hero-services::before,
.hero-portfolio::before,
.hero-contact::before,
.hero-privacy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom right, #00051b, transparent);
  z-index: 1;
}

/* Hero content wrapper */
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 750px;
  margin: 0 auto;
}

.hero-inner h1 {
  font-size: 2rem;
  margin-bottom: 20px;
 
}

.hero-inner p {
  font-size: 1.5rem;
  margin-bottom: 25px;
   line-height: 1.25;   
}

/* Hero Buttons */
.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 24px;
  border: 2px solid #fff;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.25s ease;
}

.btn:hover {
  background: #fff;
  color: #000;
}


/* =======================
   SECTION TEXT
======================= */
section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  letter-spacing: 0.6px;
  color: #ffb84d;
}

section p {
  font-size: 1.25rem;
  line-height: 1.7;
  opacity: 0.88;
}

/* =======================
   FEATURES
======================= */
.features {
  padding: 80px 0;
}

.container-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

/* =======================
   SERVICES SECTION
======================= */

.services-section {
  margin-top: 6rem;   /* creates space below hero */
  margin-bottom: 5rem;
  text-align: center;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: #001a31;
  border-radius: 18px;
  padding: 2.2rem 2rem;
  border: 1px solid rgba(255, 184, 77, 0.25);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  text-align: left;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border-color: #ffb84d;
}

.service-icon {
  font-size: 1.8rem;
  color: #ffb84d;
  margin-bottom: 1.2rem;
}

.service-card h3 {
  font-family: 'Mulish', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.7rem;
  color: #ffffff;
}

.service-card p {
  color: #cbd5f5;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile polish */
@media (max-width: 768px) {
  .service-card {
    padding: 1.8rem;
  }
}

/* =======================
   PACKAGES SECTION
======================= */

.packages-section {
  text-align: center;
  margin-top: 4rem;
   margin-bottom: 5rem;
}

.packages-section h2 {
  font-size: 2.4rem;
  margin-bottom: 2.5rem;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

/* =======================
   PACKAGE CARDS
======================= */

.package-card {
  background: #0b1030;
  border-radius: 16px;
  padding: 2.5rem 2rem;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  border: 1.5px solid rgba(255, 184, 77, 0.45);

  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 55px rgba(0,0,0,0.45);
  border-color: #ffb84d;
}

.package-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}

.package-card .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffb84d;
  margin-bottom: 1rem;
}

.package-desc {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.package-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}

.package-card ul li {
  padding: 0.5rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.package-card ul li:last-child {
  border-bottom: none;
}

.package-card .btn-primary {
  margin-top: auto;
}

/* =======================
   PACKAGE CTA BUTTON
======================= */

.package-card .btn-primary {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  color: #0b1030; /* dark text for contrast */
  background: linear-gradient(135deg, #ffb84d, #ffa500);
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  border: 2px solid #ffb84d;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(255, 184, 77, 0.4);
  margin-top: auto;
}

/* Hover Effect */
.package-card .btn-primary:hover {
  background: linear-gradient(135deg, #ffa500, #ffb84d);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(255, 184, 77, 0.5);
  color: #fff;
}

/* Active / click effect */
.package-card .btn-primary:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 8px rgba(255, 184, 77, 0.3);
}


/* =======================
   COMPARISON TABLE
======================= */

.comparison-section {
  margin-top: 5rem;
  margin-bottom: 5rem;
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 3rem;
  color: #ffffff;
  font-size: 1.05rem;
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: #02062b;
  border-radius: 18px;
  padding: 1.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.45);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.2rem;
  text-align: center;
  font-size: 0.95rem;
}

.comparison-table th {
  font-family: 'Mulish', sans-serif;
  font-size: 1rem;
  color: #ffb84d;
  border-bottom: 1px solid rgba(255, 184, 77, 0.35);
}

.comparison-table td:first-child,
.comparison-table th:first-child {
  text-align: left;
  font-weight: 600;
  color: #ffffff;
}

.comparison-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table tr:last-child {
  border-bottom: none;
}

.comparison-table td {
  color: #e5e9ff;
}

.comparison-table td:contains("✓") {
  color: #6ee7b7;
  font-weight: 700;
}

/* =======================
   RESPONSIVE COMPARISON TABLE
======================= */

@media (max-width: 768px) {
  .comparison-table {
    min-width: 100%;
    border: none;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    background: #0b1030;
    margin-bottom: 1.5rem;
    border-radius: 16px;
    padding: 1.2rem;
    box-shadow: 0 16px 32px rgba(0,0,0,0.35);
    border: 1.5px solid rgba(255, 184, 77, 0.35);
  }

  .comparison-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border: none;
    font-size: 0.95rem;
  }

  .comparison-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #ffb84d;
    padding-right: 1rem;
  }

  .comparison-table td:first-child {
    font-weight: 700;
    font-size: 1.05rem;
    color: #ffffff;
    padding-bottom: 0.8rem;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}


/* =======================
   MOBILE REFINEMENTS
======================= */

@media (max-width: 768px) {
  .packages-section h2 {
    font-size: 2rem;
  }

  .comparison-table {
    font-size: 0.9rem;
  }
}

/* =======================
   MOBILE STACK & CENTRE
======================= */
@media (max-width: 768px) {

  /* Centre all sections */
  main section {
    align-items: center;
    text-align: center;
  }

  /* Force containers to centre */
  .page-container {
    align-items: center;
  }

  /* Stack all grids into single column */
  .services-grid,
  .packages-grid,
  .faq-grid,
  .portfolio-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    justify-items: center;
  }

  /* Centre all cards */
.service-card,
.faq-item,
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 3 / 2; 
}

/* =======================
   PACKAGE CARD TEXT FIX
======================= */

.package-card {
  aspect-ratio: auto !important;
  height: auto !important;
  min-height: unset !important;
  overflow: visible !important;
}

/* Ensure content stacks correctly */
.package-card {
  display: flex;
  flex-direction: column;
}

/* Text must wrap and stay inside */
.package-desc,
.package-card p,
.package-card li {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: normal;
}

/* Button stays at bottom without forcing height */
.package-card .btn-primary {
  margin-top: auto;
}


  /* Centre icons */
  .service-icon {
    display: flex;
    justify-content: center;
  }

  /* Hero content */
  .hero,
  .hero-base,
  .hero-services,
  .hero-portfolio,
  .hero-contact,
  .hero-privacy {
    align-items: center;
    text-align: center;
  }

  .hero-inner {
    margin: 0 auto;
    padding-inline: 1rem;
  }

  /* Comparison table */
  .comparison-section {
    align-items: center;
  }

  .comparison-table-wrapper {
    width: 100%;
    margin-inline: auto;
  }

  /* Buttons */
  .btn,
  .btn-primary {
    margin-inline: auto;
  }

}



/* =======================
   FAQ SECTION
======================= */

.faq-section {
  margin-top: 5rem;
}

.faq-section h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.faq-item {
  background: #0b1030;
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  border: 1.5px solid rgba(255, 184, 77, 0.45);
  box-shadow: 0 16px 32px rgba(0,0,0,0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255,184,77,0.35);
  border-color: #ffb84d;
}

.faq-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: #ffb84d;
}

.faq-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* Mobile */
@media (max-width:  x) {
  .faq-section h2 {
    font-size: 2rem;
  }

  .faq-item {
    padding: 1.5rem 1rem;
  }
}


/* =======================
   PORTFOLIO GRID
======================= */
.portfolio-section {
  padding: 2rem 0;
}

.section-heading {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #ffb84d;
}

.portfolio-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.project-card {
  position: relative;
  flex: 1 1 300px;
  max-width: 350px;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #000;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.project-card picture,
.project-card img {
  width: 100%;
  height: 100%;
  display: block;
}

.project-card img {
  object-fit: cover;
}


.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.3));
  color: #fff;
  padding: 1.2rem;
  transform: translateY(100%);
  transition: transform 0.35s ease-in-out;
}

.project-card:hover .overlay {
  transform: translateY(0);
}

.overlay h2 {
  font-size: 1.5rem;
  font-weight: 700;
}

.overlay p {
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =======================
   FOLIO SECTION
======================= */
.folio-section {
  margin-top: 6rem;   /* creates space below hero */
  margin-bottom: 5rem;
  text-align: center;
}

.folio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.folio-card {
  background: #001a31;
  border-radius: 18px;
  border: 2px solid rgba(255, 184, 77, 0.45);
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.45);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.folio-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 65px rgba(0,0,0,0.6);
}

.folio-media {
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

.folio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.folio-card:hover .folio-media img {
  transform: scale(1.06);
}

.folio-content {
  padding: 1.4rem 1.5rem 1.7rem;
}

.folio-content h3 {
  margin-bottom: 0.5rem;
}

.folio-content p {
  font-size: 0.95rem;
  opacity: 0.85;
}



/* =======================
   CONTACT PAGE
======================= */
.contact-section {
  padding: 2rem 0;
  text-align: center;
  background: #0f1b36;
}

.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: left;
}

.contact-form label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #ffb84d;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #ffffff;
  background: #0a0d1d;
  color: #fff;
  font-size: 1rem;
  transition: border 0.3s, background 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #ffb84d;
  background: #0f1630;
  outline: none;
}

.contact-form select {
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #ffffffb2;
  background: #0a0d1d;
  color: #fff;
  font-size: 1rem;
  width: 100%;
  appearance: none;
}


.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  align-self: flex-start;
  padding: 14px 32px;
  border-radius: 6px;
  border: 2px solid #ffb84d;
  color: #ffb84d;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-form .btn:hover {
  background: #ffb84d;
  color: #000;
}

.contact-info {
  max-width: 700px;
  margin: 40px auto 0;
  opacity: 0.8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* =======================
   PRIVACY PAGE
======================= */
.privacy-section {
  padding: 2rem 0;
}

.privacy-content p {
  margin-bottom: 1.5em;
}

.privacy-content h3 {
  margin: 2em 0 0.8em;
}

/* =======================
   FOOTER
======================= */
.site-footer {
  background: #0f1b36;
  padding: 40px 0;
  text-align: center;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
    padding: 40px 0;
  gap: 25px;
}

.footer-logo img {
  width: 220px;
}

.footer-nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}

.footer-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.6;
}

.footer-social a {
  text-decoration: none;
  color: #fff;
  font-size: 1.3rem;
  margin: 0 8px;
  transition: transform 0.3s ease;
}

.footer-social a:hover {
  text-decoration: none;
  transform: scale(1.15);
}

.footer-copy {
  font-size: 0.85rem;
  opacity: 0.7;
}

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 992px) {
  .container-features {
    grid-template-columns: 1fr;
  }

  .container-aboutus {
    flex-direction: column;
  }

  .services-img-wrap {
    justify-content: center;
    margin-top: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero-inner h1 {
    font-size: 1.6rem;
  }

  .hero-inner p {
    font-size: 0.95rem;
  }

  .portfolio-grid {
    flex-direction: column;
  }

  .project-card {
    max-width: 100%;
  }

  .contact-form .btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-inner h1 {
    font-size: 1.4rem;
  }

  .hero-inner p {
    font-size: 0.9rem;
  }

  .contact-section {
    padding: 60px 15px;
  }

  .footer-nav ul {
    flex-direction: column;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  .hero-buttons {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .hero-buttons .btn {
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 768px) {
  .hero,
  .hero-base,
  .hero-services,
  .hero-portfolio,
  .hero-contact,
  .hero-privacy {
    align-items: center;
    text-align: center;
  }

  .hero-inner {
    padding-left: 0;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {

  /* Lock all main content to service-card width */
  .page-container,
  .hero-inner,
  .services-section,
  .packages-section,
  .comparison-section,
  .faq-section,
  .portfolio-section,
  .contact-section,
  .privacy-section {
    max-width: var(--mobile-content-width);
    margin-inline: auto;
    padding-inline: 0;
  }

  /* Force all grids into a single centred column */
  .services-grid,
  .packages-grid,
  .faq-grid,
  .portfolio-grid {
    grid-template-columns: 1fr !important;
    justify-items: center;
    width: 100%;
  }

  /* Ensure ALL cards match the same width */
  .service-card,
  .package-card,
  .faq-item,
  .project-card,
  .comparison-table-wrapper,
  .contact-form,
  .contact-info {
    width: 100%;
    max-width: var(--mobile-content-width);
    margin-inline: auto;
  }

  /* Centre hero + section text consistently */
  h1, h2, h3, p {
    text-align: center;
  }

  /* Buttons always centred */
  .btn,
  .btn-primary {
    margin-inline: auto;
  }

  /* Comparison table cards align */
  .comparison-table tr {
    max-width: var(--mobile-content-width);
    margin-inline: auto;
  }
}

/* =======================
   MOBILE LANDSCAPE WIDTH ADJUSTMENT
======================= */
@media (max-width: 932px) and (orientation: landscape) {

  /* Allow wider content than portrait mobile */
  :root {
    --mobile-content-width: 100%;
  }

  /* Remove portrait width locking */
  .page-container,
  .hero-inner,
  .services-section,
  .packages-section,
  .comparison-section,
  .faq-section,
  .portfolio-section,
  .contact-section,
  .privacy-section {
    max-width: 100%;
    padding-inline: 1.5rem;
  }

  /* HERO */
  .hero,
  .hero-base,
  .hero-services,
  .hero-portfolio,
  .hero-contact,
  .hero-privacy {
    padding: 50px 1.5rem;
    min-height: auto;
  }

  .hero-inner {
    max-width: 900px;
  }

  .hero-inner h1 {
    font-size: 1.6rem;
  }

  .hero-inner p {
    font-size: 1rem;
    line-height: 1.4;
  }

  /* USE LANDSCAPE WIDTH FOR GRIDS */
  .services-grid,
  .packages-grid,
  .folio-grid,
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  /* Portfolio flex layout */
  .portfolio-grid {
    flex-direction: row;
    justify-content: center;
  }

  .project-card {
    max-width: 320px;
  }

  /* Cards should NOT be portrait-sized */
  .service-card,
  .package-card,
  .folio-card,
  .faq-item {
    max-width: none;
    width: 100%;
  }

  /* Comparison table */
  .comparison-table-wrapper {
    max-width: 100%;
  }

  /* Buttons */
  .btn,
  .btn-primary {
    font-size: 0.95rem;
  }

  /* Footer */
  .footer-nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
  }
}
