/* ==========================================================================
   Francesco Construction — static clone
   Design system verified against live site computed styles (Aug 2026)
   ========================================================================== */

/* ---------- Fonts (local, self-hosted) ---------- */
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/almarai-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Almarai';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/almarai-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/librebaskerville-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/librebaskerville-400i.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Baskerville';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../assets/fonts/librebaskerville-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --ink: #1D2B3C;            /* primary text / header / buttons (verified rgb(29,43,60)) */
  --ink-hover: #24374D;      /* button hover */
  --accent: #F5A623;         /* review stars / quotes */
  --gray-97: #F5F5F5;        /* card / section light background (verified rgb(245,245,245)) */
  --gray-85: #D9D9D9;        /* hero bright background, muted footer text (verified rgb(217,217,217)) */
  --white: #FFFFFF;
  --card-text: #333333;      /* testimonial body text */
  --author-text: #222222;    /* testimonial author */
  --wa-green: #25D366;       /* WhatsApp */
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-body: 'Almarai', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --radius-pill: 50px;
  --radius-card: 16px;
  --shadow-card: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-header: 0 12px 12px 0 rgba(0, 0, 0, 0.2);
  --header-height: 163px;
  --page-pad: clamp(16px, 4vw, 57px);
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--white);
  padding-top: var(--header-height);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.4rem, 4.7vw, 4.24rem);
}

h2 {
  font-size: clamp(1.9rem, 3.27vw, 2.94rem);
}

h3 {
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
}

h4 {
  font-size: clamp(1.2rem, 1.83vw, 1.648rem);
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

ul {
  margin: 0 0 1em;
  padding-left: 24px;
}

.wrap {
  max-width: 2000px;
  margin: 0 auto;
  padding-left: var(--page-pad);
  padding-right: var(--page-pad);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--white);
  font-size: 16px;
}

.skip-link:focus {
  top: 8px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Pill buttons ---------- */
.btn-pill {
  display: inline-block;
  padding: 27px 50px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  border: 0;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.btn-pill:hover {
  background: var(--ink-hover);
}

@media (max-width: 575px) {
  .btn-pill {
    padding: 20px 40px;
    font-size: 16px;
  }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  width: 100%;
  background: var(--ink);
  box-shadow: var(--shadow-header);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.7vw;
  padding-bottom: 1.7vw;
  min-height: var(--header-height);
}

.header-logo {
  display: block;
  flex: 1 1 auto;
}

.header-logo img {
  max-height: 114px;
  width: auto;
  transition: opacity 0.3s ease;
}

.header-logo:hover img {
  opacity: 0.85;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.2vw, 32px);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.header-nav a {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  opacity: 0.8;
}

.header-burger {
  display: none;
  border: 0;
  background: none;
  padding: 10px;
  cursor: pointer;
}

.header-burger span {
  display: block;
  width: 26px;
  height: 1px;
  background: var(--white);
  margin: 6px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 250;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 8vw, 3.375rem);
  color: var(--gray-85);
  text-decoration: none;
}

.mobile-menu a[aria-current="page"] {
  color: var(--white);
}

@media (max-width: 767px) {
  .header-nav {
    display: none;
  }

  .header-burger {
    display: block;
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
  }

  .site-header .header-inner {
    justify-content: center;
    padding-top: 6vw;
    padding-bottom: 6vw;
    position: relative;
  }

  .header-logo img {
    max-height: 104px;
  }
}

/* ---------- Section base ---------- */
.section {
  padding-top: clamp(48px, 7vw, 110px);
  padding-bottom: clamp(48px, 7vw, 110px);
}

.section--bright {
  background: var(--gray-85);
}

.section--light {
  background: var(--gray-97);
}

.section--white {
  background: var(--white);
}

/* ---------- Hero (home) ---------- */
.hero .wrap {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
}

.hero-text {
  max-width: 620px;
}

.hero-text h1 {
  margin: 0 0 32px;
}

.hero-text p {
  font-size: clamp(15px, 1.11vw, 16px);
  line-height: 1.5;
  max-width: 500px;
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-media img {
  width: 100%;
  max-width: 45.83vw;
  object-fit: contain;
  object-position: 56.67% 32.8%;
}

@media (max-width: 767px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-media {
    justify-content: flex-start;
  }

  .hero-media img {
    max-width: 100%;
  }
}

/* ---------- Split section (Our services / Why us) ---------- */
.split .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}

.split--media-left .split-text {
  order: 2;
}

.split--media-left .split-media {
  order: 1;
}

.split-media img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}

.split-text h1 {
  margin: 0 0 24px;
}

.split-text p {
  max-width: 560px;
}

.split .btn-pill {
  margin-top: 24px;
}

.why-bullets {
  margin: 8px 0 16px;
  padding-left: 24px;
}

.why-bullets li {
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .split .wrap {
    grid-template-columns: 1fr;
  }

  .split--media-left .split-text {
    order: 1;
  }

  .split--media-left .split-media {
    order: 2;
  }
}

/* ---------- Reviews ---------- */
.reviews-heading {
  text-align: center;
  margin: 0 0 clamp(28px, 4vw, 56px);
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  padding: 4px;
  margin: -4px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 1s ease;
  will-change: transform;
  width: 100%;
}

.carousel-track.no-transition {
  transition: none;
}

.testimonial-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: var(--shadow-card);
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (min-width: 981px) {
  .testimonial-card {
    flex: 0 0 calc((100% - 40px) / 3);
  }
}

.quote-icon {
  font-size: 32px;
  color: var(--accent);
  position: absolute;
  top: 16px;
  left: 16px;
}

.testimonial-card p {
  margin: 0 0 16px 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--card-text);
  padding-left: 28px;
  flex-grow: 1;
}

.testimonial-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.testimonial-rating {
  color: var(--accent);
  font-size: 18px;
  margin-bottom: 6px;
}

.testimonial-author {
  font-weight: 700;
  color: var(--author-text);
  font-size: 14px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #007aff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.carousel-arrow svg {
  width: 27px;
  height: 27px;
}

.carousel-arrow.is-disabled {
  opacity: 0.35;
  cursor: default;
}

.carousel-arrow--prev {
  left: -8px;
}

.carousel-arrow--next {
  right: -8px;
}

.carousel-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.carousel-pagination button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s ease;
}

.carousel-pagination button.is-active {
  background: #007aff;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(24px, 5vw, 80px);
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(32px, 4vw, 64px);
}

.footer-brand {
  flex: 1 1 auto;
}

.footer-brand img {
  width: 100%;
  max-width: 320px;
  margin-bottom: 28px;
}

.footer-brand h2 {
  color: var(--gray-85);
  margin: 0;
}

.footer-groups {
  display: flex;
  gap: clamp(32px, 6vw, 100px);
  flex: 1 1 auto;
  justify-content: flex-end;
}

.footer-group h4 {
  color: var(--gray-85);
  margin: 0 0 14px;
}

.footer-group p {
  margin: 0 0 8px;
  font-size: 16px;
}

.footer-group a {
  color: var(--white);
  text-decoration: none;
}

.footer-group a:hover {
  text-decoration: underline;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 13px;
  color: var(--gray-85);
}

.footer-legal .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 20px;
}

.footer-legal p {
  margin: 0;
}

.footer-legal nav {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--gray-85);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--white);
}

@media (max-width: 767px) {
  .footer-main {
    flex-direction: column;
  }

  .footer-groups {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* ---------- Service page: card grid ---------- */
.service-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--gray-97);
  padding: 10%;
  display: flex;
  flex-direction: column;
  text-align: center;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.service-card:hover {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
  transform: translateY(-4px);
}

.service-card-media {
  overflow: hidden;
  margin-bottom: 8%;
}

.service-card-media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-card-media img {
  transform: scale(1.03);
}

.service-card-title {
  font-size: 1.2rem;
  margin: 0 0 4%;
  color: var(--ink);
}

.service-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
  margin: 0 0 8%;
  color: var(--ink);
}

.service-card-btn {
  align-self: center;
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--white);
  font-size: 0.8rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.service-card-btn:hover {
  background: var(--ink-hover);
}

@media (max-width: 1199px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact page ---------- */
.contact-heading {
  text-align: center;
  margin: 0 0 clamp(36px, 5vw, 90px);
}

.contact-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contact-card {
  background: var(--gray-97);
  padding: clamp(40px, 6.5vw, 110px) clamp(18px, 2.5vw, 36px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.contact-card h3 {
  font-size: 1.6rem;
  margin: 0;
}

.contact-card p {
  font-size: 1rem;
  margin: 0;
}

.contact-card a {
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact form ---------- */
.contact-form-section {
  padding-top: clamp(40px, 5vw, 80px);
}

.contact-form {
  max-width: 880px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

@media (max-width: 575px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  color: var(--ink);
}

.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 24px;
  padding: 8px 15px;
  height: 42px;
}

.field textarea {
  height: 100px;
  resize: vertical;
  padding: 12px 15px;
}

.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-submit .btn-pill {
  font-size: 16px;
  padding: 24px 35.2px;
  background: #000000;
}

.form-submit .btn-pill:hover {
  background: var(--ink-hover);
}

.form-status {
  margin: 20px 0 0;
  font-size: 16px;
  min-height: 24px;
}

.form-status.is-success {
  color: #14682f;
}

.form-status.is-error {
  color: #b3261e;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* ---------- Privacy page ---------- */
.privacy-content {
  max-width: 760px;
}

.privacy-content h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 40px;
}

.privacy-content h2 {
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-top: 48px;
  margin-bottom: 16px;
}

.privacy-content p,
.privacy-content li {
  color: var(--ink);
}

/* ---------- 404 ---------- */
.notfound {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.notfound h1 {
  margin: 0 0 16px;
}

.notfound p {
  margin: 0 0 32px;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wa-green);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--wa-green);
  animation: wa-pulse 2s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70%,
  100% {
    transform: scale(1.6);
    opacity: 0;
  }
}

/* ---------- Reveal animations ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .whatsapp-float::before {
    animation: none;
    display: none;
  }

  .carousel-track {
    transition: none;
  }
}
