/* Shared size scale, followed by layouts for tablet and phone screens. */
:root {
  --gutter: clamp(24px, 4.5vw, 72px);
  --section-space: clamp(64px, 6.5vw, 104px);
  --section-title: clamp(30px, 3vw, 44px);
  --content-title: clamp(20px, 1.6vw + 4px, 27px);
  --body-copy: clamp(14px, .2vw + 12.8px, 16px);
  --layout-gap: clamp(28px, 4.5vw, 72px);
  --form-padding: clamp(20px, 2.2vw, 32px);
}

body { font-size: var(--body-copy); }
.section, .section.services-section { padding-block: var(--section-space); }
.section h2, .services-heading h2, .contact-info > h2 { font-size: var(--section-title); }
.section-heading, .services-heading { gap: var(--layout-gap); margin-bottom: clamp(24px, 3vw, 40px); }
.about-intro { gap: var(--layout-gap); margin-bottom: clamp(32px, 4vw, 56px); }
.about-grid { gap: clamp(24px, 3.5vw, 48px); }
.about-intro > p { font-size: var(--body-copy); line-height: 1.75; }
.service-panel h3, .gallery-browser .comparison-copy h3 { font-size: var(--content-title); }
.service-intro > p, .service-detail > p:not(.material-label) { font-size: clamp(14px, .12vw + 13px, 15px); line-height: 1.75; }
.about-grid article > p:not(.eyebrow) { line-height: 1.75; }
.process-grid article > p { line-height: 1.7; }
.text-link, .theme-toggle { min-height: 44px; }
.enquiry-panel, .contact-info, .office-address { min-width: 0; }

/* Contact information and form stay alongside each other on desktop. */
.contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr);
  grid-template-areas: 'info form' 'office form';
  column-gap: var(--layout-gap);
  row-gap: 28px;
}
.contact-info { grid-area: info; }
.enquiry-panel { grid-area: form; padding: var(--form-padding); }
.enquiry-panel .tab-pane { scroll-margin-top: 62px; }
.office-address { grid-area: office; margin: 0; align-self: start; }
.enquiry-tabs { gap: 24px; margin-bottom: 18px; }
.enquiry-tab { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px 9px; }
.enquiry-panel h3 { font-size: clamp(20px, 1.5vw + 3px, 24px); margin-bottom: 6px; }
.form-note { font-size: 11px; line-height: 1.5; margin-bottom: 16px; }
.form-fields { gap: 14px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-label { font-size: 12px; line-height: 1.5; margin-bottom: 5px; }
.form-label > span { color: var(--blue); }
.form-control, .form-select { font-size: 16px; min-height: 44px; padding: 9px 10px; line-height: 1.5; }
textarea.form-control { min-height: 88px; height: 96px; }
.form-control::placeholder { font-size: 13px; }
.field-help { font-size: 11px; line-height: 1.5; margin-top: 4px; }
.form-footer { margin-top: 16px; }
.form-actions { gap: 10px; margin-top: 0; }
.form-actions .button { min-height: 44px; font-size: 13px; padding: 9px 18px; }
.form-status { font-size: 12px; line-height: 1.65; overflow-wrap: anywhere; }
.enquiry-context { padding: 10px 12px; margin: 0 0 14px; line-height: 1.6; }

@media (width < 1200px) {
  .contact-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); column-gap: 32px; }
  .contact-methods > a.contact-phone { font-size: 23px; }
  .service-panel { gap: 16px 26px; }
}

@media (width < 1024px) {
  :root { --header-height: 80px; --section-space: 64px; --layout-gap: 32px; }
  .navigation-bar { min-height: 79px; }
  .site-brand img { height: 49px; }
  .hero-slide { min-height: clamp(560px, calc(100svh - var(--header-height)), 685px); padding-block: 64px 144px; }
  .hero-control { flex-basis: 44px; width: 44px; min-width: 44px; height: 40px; }
  .hero-control svg { width: 15px; height: 15px; }
  .hero-controller { column-gap: 18px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'info' 'form' 'office'; row-gap: 28px; }
  .contact-info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
  .contact-info > .eyebrow { grid-column: 1; }
  .contact-info > h2 { grid-column: 1; grid-row: 2; }
  .contact-info > p:not(.eyebrow) { grid-column: 1; grid-row: 3; margin-top: 16px; font-size: 14px; }
  .contact-methods { grid-column: 2; grid-row: 2 / 4; margin-top: 0; align-self: center; }
  .enquiry-panel { --form-padding: 24px; }
  .office-address { padding-top: 22px; border-top: 1px solid var(--line); }
  .office-address address { display: block; margin-left: 0; font-size: 13px; }
  .office-address .text-link { margin: 6px 0 0; }
  .service-intro > p, .service-detail > p:not(.material-label) { line-height: 1.7; }
  .site-focus { gap: 28px; }
  .menu-top-inner { min-height: 80px; }
}

@media (width < 640px) {
  :root {
    --header-height: 72px;
    --gutter: clamp(18px, 5vw, 24px);
    --section-space: 44px;
    --section-title: clamp(28px, 6.9vw, 34px);
    --content-title: clamp(20px, 5.4vw, 24px);
    --layout-gap: 24px;
  }
  .navigation-bar { min-height: 71px; }
  .site-brand { width: 128px; padding-block: 10px; }
  .site-brand img { height: 43px; }
  .hero-slide { min-height: clamp(500px, calc(100svh - var(--header-height)), 660px); padding-block: 40px 128px; }
  .hero-content .hero-eyebrow { margin-bottom: 20px; }
  .hero-content .hero-lead { margin-top: 20px; line-height: 1.7; }
  .hero-ctas { margin-top: 22px; gap: 14px 18px; }
  .hero-controller { bottom: 16px; gap: 0 12px; }
  .hero-buttons { gap: 0; padding: 0; }
  .hero-control { height: 44px; }
  .hero-selector { height: 44px; min-height: 44px; }
  .hero-timer { bottom: 15px; }
  .hero-assurances .assurances { padding-block: 22px; gap: 18px 14px; }
  .hero-assurances .assurances p > span { font-size: 11px; line-height: 1.5; }
  .section-heading, .process-section .section-heading, .services-heading { display: block; margin-bottom: 24px; }
  .section-heading > p, .services-heading > p { margin-top: 14px; font-size: 14px; line-height: 1.7; }
  .eyebrow, .services-heading .eyebrow { margin-bottom: 12px; }
  .service-panel { gap: 16px 18px; }
  .service-panel h3 { padding: 0; }
  .service-intro { padding: 0; }
  .service-detail { padding: 0; }
  .materials { font-size: 12px; }
  .material-label { margin-top: 16px; }
  .service-panel .text-link { margin-top: 16px; }
  .gallery-browser .comparison-copy { padding: 20px; }
  .gallery-browser .comparison-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
  .gallery-browser .comparison-copy > p.comparison-instruction { margin-block: 12px; }
  .process-grid { gap: 12px; }
  .process-grid article { display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto; gap: 8px 12px; padding: 18px; }
  .process-step { display: contents; }
  .process-step > span { grid-column: 1; grid-row: 1 / 4; }
  .process-step > p { grid-column: 2; font-size: 12px; }
  .process-grid h3 { grid-column: 2; margin: 0; font-size: 19px; line-height: 1.35; }
  .process-grid article > p { grid-column: 2; font-size: 14px; line-height: 1.65; }
  .site-focus { margin-top: 24px; padding-top: 20px; gap: 18px; }
  .site-focus h3 { font-size: 20px; }
  .site-focus p { font-size: 14px; line-height: 1.65; }
  .site-focus ul { gap: 8px 16px; }
  .about-intro { display: block; margin-bottom: 26px; }
  .about-intro > p { margin-top: 18px; font-size: 14px; line-height: 1.75; }
  .about-grid { display: block; }
  .about-grid article { padding-top: 20px; margin-top: 22px; }
  .about-grid .eyebrow { margin-bottom: 10px; }
  .about-grid h3 { font-size: 20px; margin-bottom: 12px; }
  .about-grid article > p:not(.eyebrow) { margin-top: 10px; }
  .check-list li { margin-top: 8px; line-height: 1.65; }
  .contact-layout { row-gap: 24px; }
  .contact-info { display: block; }
  .contact-info > p:not(.eyebrow) { max-width: 340px; margin-top: 14px; line-height: 1.65; }
  .contact-methods { margin-top: 16px; }
  .contact-methods > a:not(.text-link) { padding-block: 10px; min-height: 44px; font-size: 14px; }
  .contact-methods > a.contact-phone { font-size: 23px; }
  .contact-methods .whatsapp-link { padding-block: 10px; }
  .enquiry-panel { --form-padding: 16px; }
  .enquiry-panel .tab-pane { scroll-margin-top: 58px; }
  .enquiry-tabs { margin-bottom: 14px; gap: 20px; }
  .enquiry-tab { font-size: 13px; }
  .form-note { margin-bottom: 12px; }
  .form-fields { gap: 11px 12px; }
  .field-wide, .field-fluid { grid-column: 1 / -1; }
  textarea.form-control { height: 88px; }
  .form-actions .button-primary { flex: 1; }
  .office-address { padding-top: 20px; }
  .office-address .eyebrow { margin-bottom: 8px; }
  .office-address address { line-height: 1.7; }
  .site-footer { padding-block: 28px 18px; }
  .footer-top { align-items: center; gap: 18px; padding-bottom: 20px; }
  .footer-top img { width: 140px; }
  .footer-top > .text-link { gap: 12px; }
  .footer-bottom { padding-top: 14px; }
  .menu-top-inner { min-height: 72px; }
  .menu-top-inner > a { width: 128px; }
  .menu-body { padding-block: 24px; }
  .menu-major-link { font-size: clamp(23px, 6vw, 27px); padding-block: 12px; }
  .menu-bottom-inner { padding-block: 20px; }
}

@media (width < 360px) {
  .field-short { grid-column: 1 / -1; }
  .hero-content .hero-lead { font-size: 13px; }
  .hero-service-link { font-size: 11px; }
  .process-grid article { gap: 7px 10px; padding: 16px; }
  .process-grid h3 { font-size: 18px; }
  .footer-top img { width: 125px; }
}

@media (max-height: 600px) and (min-width: 640px) {
  .hero-slide { min-height: 480px; padding-block: 36px 118px; }
  .hero-carousel h1, .hero-carousel h2 { font-size: clamp(38px, 5vw, 54px); }
  .hero-content .hero-eyebrow { margin-bottom: 16px; }
  .hero-content .hero-lead { margin-top: 16px; }
  .hero-ctas { margin-top: 18px; }
  .hero-controller { bottom: 18px; }
}

@media (pointer: coarse) {
  .hero-control { flex-basis: 44px; width: 44px; min-width: 44px; height: 44px; }
  .hero-selector { min-height: 44px; }
}

/* Keep the navbar and open-menu logos identical at every breakpoint. */
:root { --brand-width: 164px; --brand-height: 57px; }
.site-brand, .menu-top-inner > a { width: var(--brand-width); flex: none; }
.site-brand img, .menu-top-inner > a img { width: 100%; height: var(--brand-height); object-fit: contain; }
@media (max-width: 1150px) { :root { --brand-width: 151px; } }
@media (width < 1024px) { :root { --brand-height: 49px; } }
@media (width < 640px) { :root { --brand-width: 128px; --brand-height: 43px; } }
