/*
Theme Name: Sandstone Sourcing
Theme URI: https://sandstonesourcing.com
Author: Fuze Design Studio
Description: Custom theme for Sandstone Sourcing Ltd.
Version: 1.0
License: All Rights Reserved
Text Domain: sandstone
*/

* {
  box-sizing: border-box;
}

:root {
  --bg: #021223;
  --bg-deep: #010b16;
  --panel: rgba(1, 14, 28, 0.88);
  --panel-soft: rgba(3, 20, 38, 0.82);
  --line: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.82);
  --soft: rgba(255, 255, 255, 0.58);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
}

/* HERO */
.hero {
  position: relative;
  min-height: 750px;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(1, 8, 18, 0.78)),
    linear-gradient(90deg, rgba(1, 9, 18, 0.45) 0%, rgba(1, 9, 18, 0.18) 45%, rgba(1, 9, 18, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 40px;
  padding-bottom: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 220px;
}

.brand-mark {
  width: 229px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mark img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.hero h1 {
  margin: 0;
  max-width: 750px;
  font-size: clamp(2.7rem, 5vw, 3.6rem);
  line-height: 1;
  font-weight: 800;
}

/* ABOUT */
.about-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 550px;
  background: rgba(1, 11, 22, 0.92);
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-media {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.about-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(1, 14, 28, 0.55), rgba(1, 14, 28, 0.6));
}

.about-panel {
  background: linear-gradient(180deg, rgba(0, 22, 43, 0.96), rgba(1, 14, 28, 0.98));
  display: flex;
  align-items: center;
}

.about-inner {
  width: min(520px, calc(100% - 72px));
  margin: 0 auto;
  padding: 70px 0;
}

.about-inner h2 {
  margin: 0 0 28px;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.about-inner p {
  margin: 0 0 28px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* CONTACT */
.contact-section {
  position: relative;
  padding: 90px 0 110px;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(1, 12, 24, 0.85), rgba(1, 12, 24, 0.05));
}

.contact-section > .container {
  position: relative;
  z-index: 1;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.2rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.contact-wrap {
  background: rgba(1, 15, 30, 0.52);
  padding: 56px 28px 34px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 44px;
  align-items: start;
}

.communications-card {
  padding: 22px 30px 22px 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.communications-card h3,
.form-card h3 {
  margin: 0 0 28px;
  font-size: clamp(1.4rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.office-block h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  font-weight: 700;
}

.office-block p {
  margin: 0 0 34px;
  color: var(--muted);
  line-height: 1.4;
  font-size: 1rem;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 1.08rem;
}

.icon {
  width: 28px;
  height: 28px;
  /*border: 1px solid rgba(255, 255, 255, 0.4);*/
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.form-card {
  padding: 22px 0 0;
}

.form-intro {
  margin: -12px 0 26px;
  color: var(--soft);
  font-size: 1rem;
}

/* CF7 FORM STYLING */
.contact-form {
  width: 100%;
}

.contact-form .form-row {
  display: grid;
  gap: 26px;
  margin-bottom: 28px;
}

.contact-form .two-col {
  grid-template-columns: 1fr 1fr;
}

.contact-form .field label,
.contact-form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea,
.contact-form .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  padding: 12px 0;
  outline: none;
  border-radius: 0;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form textarea:focus,
.contact-form .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-bottom-color: rgba(255, 255, 255, 0.75);
}

.contact-form textarea {
  resize: vertical;
  min-height: 40px;
}

.contact-form .form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
}

.contact-form input[type="submit"],
.contact-form .wpcf7-submit {
  min-width: 150px;
  height: 54px;
  padding: 0 24px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: 0.25s ease;
}

.contact-form input[type="submit"]:hover,
.contact-form .wpcf7-submit:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* CF7 response messages */
.wpcf7-response-output {
  color: var(--muted) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  font-size: 0.95rem;
  margin: 16px 0 0 !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: rgba(111, 255, 182, 0.35) !important;
}

.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output {
  border-color: rgba(255, 117, 117, 0.35) !important;
}

.wpcf7-not-valid-tip {
  color: rgba(255, 117, 117, 0.8) !important;
  font-size: 0.85rem;
}

/* Hide CF7 default <br> and <p> spacing */
.wpcf7 p { margin: 0; }
.wpcf7 br { display: none; }

/* FOOTER */
.site-footer {
  padding: 26px 20px 44px;
  text-align: center;
  background: rgba(1, 9, 18, 0.95);
}

.site-footer p {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.35);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero {
    min-height: 760px;
  }

  .brand {
    margin-bottom: 90px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-media {
    min-height: 280px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .communications-card {
    border-right: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    order: 2;
    padding: 34px 0 0;
  }

  .form-card {
    order: 1;
  }
}

@media (max-width: 767px) {
  .container {
    width: min(100% - 24px, 1000px);
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 28px;
    padding-bottom: 56px;
    text-align: center;
  }

  .brand {
    justify-content: center;
    margin-bottom: 170px;
    margin-top: 40px;
  }

  .brand-mark {
    width: 229px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-mark img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  .hero h1 {
    max-width: 100%;
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .about-media {
    min-height: 200px;
  }

  .about-inner {
    width: min(100% - 44px, 640px);
    padding: 46px 0 54px;
    text-align: center;
  }

  .about-inner h2 {
    font-size: 2rem;
    margin-bottom: 24px;
  }

  .about-inner p {
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 24px;
  }

  .contact-section {
    padding: 56px 0 60px;
  }

  .contact-wrap {
    padding: 34px 18px 24px;
  }

  .section-heading {
    margin-bottom: 18px;
  }

  .section-heading h2 {
    font-size: 2rem;
  }

  .form-card h3,
  .communications-card h3 {
    font-size: 1.5rem;
    text-align: center;
  }

  .form-intro {
    text-align: center;
    margin-bottom: 28px;
  }

  .contact-form .two-col {
    grid-template-columns: 1fr;
  }

  .contact-form .form-actions {
    display: block;
  }

  .contact-form input[type="submit"],
  .contact-form .wpcf7-submit {
    width: 100%;
    height: 56px;
    margin-bottom: 22px;
  }

  .communications-card {
    margin-top: 18px;
    padding: 28px 0 0;
    background: rgba(255, 255, 255, 0.03);
    border-top: none;
    padding: 26px 22px;
  }

  .office-block h4 {
    font-size: 1.2rem;
  }

  .office-block p,
  .contact-details li {
    font-size: 0.9rem;
  }

  .site-footer {
    padding-bottom: 28px;
  }
}
