/* ============================================================
   Tweed Coast Property Maintenance — Main Stylesheet
   ============================================================ */

/* ---- 1. CUSTOM PROPERTIES ---- */
:root {
  --green-dark:   #1a3a6e;
  --green-mid:    #2563eb;
  --green-light:  #eff6ff;
  --gold:         #f59e0b;
  --gold-hover:   #d97706;
  --white:        #ffffff;
  --grey-bg:      #f6f8fc;
  --grey-border:  #dde5f0;
  --text-dark:    #161e2e;
  --text-mid:     #3d4e6e;
  --text-light:   #6e7f9e;
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.08);
  --shadow:       0 3px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --radius:       8px;
  --radius-lg:    16px;
  --transition:   0.22s ease;
  --container:    1160px;
  --nav-height:   72px;
}

/* ---- 2. RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ---- 3. TYPOGRAPHY ---- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; color: var(--text-dark); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.45rem); }

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.section-title  { margin-bottom: 0.75rem; }
.section-sub    { font-size: 1.05rem; color: var(--text-mid); max-width: 580px; }

/* ---- 4. LAYOUT ---- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section       { padding: 80px 0; }
.section--grey { background: var(--grey-bg); }

.section-header          { margin-bottom: 48px; }
.section-header--center  { text-align: center; }
.section-header--center .section-sub { margin: 0 auto; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- 5. BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--gold);
  color: var(--text-dark);
  border-color: var(--gold);
}
.btn--primary:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn--outline-white:hover {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn--green {
  background: var(--green-dark);
  color: var(--white);
  border-color: var(--green-dark);
}
.btn--green:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn--sm { padding: 9px 18px; font-size: 0.82rem; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---- 6. NAVIGATION ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--green-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold);
  flex-shrink: 0;
  overflow: hidden;
}
.nav__logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.nav__logo-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.1;
}
.nav__logo-sub {
  font-size: 0.68rem;
  color: var(--text-light);
  font-weight: 400;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  padding: 8px 13px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
}
.nav__link:hover,
.nav__link--active { color: var(--green-dark); background: var(--green-light); }
.nav__cta { margin-left: 10px; }

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: none;
  background: none;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--grey-border);
  padding: 12px 24px 24px;
  z-index: 199;
  box-shadow: var(--shadow);
}
.nav__mobile.is-open { display: block; }
.nav__mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-mid);
  transition: all var(--transition);
  margin-bottom: 2px;
}
.nav__mobile-link:hover,
.nav__mobile-link--active { background: var(--green-light); color: var(--green-dark); }
.nav__mobile-cta { margin-top: 12px; }

/* ---- 7. HERO (Home) ---- */
.hero {
  background: linear-gradient(140deg, #091d3e 0%, #1a3a6e 55%, #2563eb 100%);
  color: var(--white);
  padding: 96px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(245,158,11,0.08) 0%, transparent 55%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.05) 0%, transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(245,158,11,0.15);
  border: 1px solid rgba(245,158,11,0.35);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}
.hero__title { color: var(--white); margin-bottom: 18px; }
.hero__title span { color: var(--gold); }
.hero__sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.07rem;
  margin-bottom: 36px;
  line-height: 1.75;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__visual { display: flex; justify-content: center; }
.hero__placeholder {
  width: 100%;
  max-width: 460px;
  aspect-ratio: 4/3;
  background: rgba(255,255,255,0.05);
  border: 2px dashed rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: rgba(255,255,255,0.4);
}
.hero__placeholder i { font-size: 3.5rem; color: rgba(245,158,11,0.4); }
.hero__placeholder p { font-size: 0.85rem; }

/* ---- 8. TRUST BAR ---- */
.trust-bar {
  background: #091d3e;
  padding: 16px 0;
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}
.trust-bar__item i { color: var(--gold); font-size: 1rem; }

/* ---- 9. SERVICE CARDS ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--green-mid);
}
.service-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.service-card__img i { font-size: 3rem; color: var(--green-mid); opacity: 0.5; }
.service-card__img img { width: 100%; height: 100%; object-fit: cover; }
.service-card__body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.service-card__icon {
  width: 42px; height: 42px;
  background: var(--green-light);
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.service-card__icon i { color: var(--green-dark); font-size: 1.1rem; }
.service-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.service-card__desc { font-size: 0.875rem; color: var(--text-mid); line-height: 1.65; flex: 1; margin-bottom: 18px; }
.service-card__cta { align-self: flex-start; }

/* ---- 10. PAGE HERO (inner pages) ---- */
.page-hero {
  background: linear-gradient(135deg, #091d3e 0%, #1a3a6e 100%);
  padding: 64px 0 52px;
  color: var(--white);
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 12px; }
.page-hero p  { color: rgba(255,255,255,0.72); font-size: 1.05rem; max-width: 540px; margin: 0 auto; }

/* ---- 11. QUOTE FORM ---- */
.quote-wrap {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.quote-head {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  padding: 32px 40px;
}
.quote-head h2 { color: var(--white); margin-bottom: 6px; font-size: 1.5rem; }
.quote-head p  { color: rgba(255,255,255,0.72); font-size: 0.9rem; }

.quote-body { padding: 40px; }

.form-block { margin-bottom: 32px; }
.form-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--grey-border);
  margin-bottom: 20px;
}
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
label .req { color: #d94f4f; margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.form-control:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.form-control::placeholder { color: #b0bcce; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* Checkbox service list */
.service-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1.5px solid var(--grey-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  user-select: none;
}
.check-item:hover { border-color: var(--green-mid); background: var(--green-light); }
.check-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--green-dark);
  cursor: pointer;
  flex-shrink: 0;
}
.check-item span { font-size: 0.85rem; color: var(--text-mid); }
.check-item:has(input:checked) { border-color: var(--green-dark); background: var(--green-light); }
.check-item:has(input:checked) span { color: var(--green-dark); font-weight: 600; }

/* File upload */
.upload-area {
  border: 2px dashed var(--grey-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-area:hover,
.upload-area.dragover {
  border-color: var(--green-mid);
  background: var(--green-light);
}
.upload-area input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  opacity: 0;
  cursor: pointer;
}
.upload-icon { font-size: 2.4rem; color: var(--green-mid); margin-bottom: 10px; opacity: 0.7; }
.upload-text strong { display: block; font-size: 0.9rem; color: var(--text-dark); margin-bottom: 4px; }
.upload-text span   { font-size: 0.8rem; color: var(--text-light); }

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--grey-bg);
  border: 1px solid var(--grey-border);
}
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 20px; height: 20px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border-radius: 50%;
  font-size: 0.68rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: none;
  line-height: 1;
}

.form-divider { height: 1px; background: var(--grey-border); margin: 28px 0; }

.form-submit-note { font-size: 0.78rem; color: var(--text-light); text-align: center; margin-top: 10px; }

/* Success state */
.form-success {
  display: none;
  text-align: center;
  padding: 64px 40px;
}
.form-success.show { display: block; }
.success-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.success-icon i { font-size: 2rem; color: var(--green-dark); }
.form-success h3 { margin-bottom: 10px; }
.form-success p  { color: var(--text-mid); max-width: 360px; margin: 0 auto; }

/* ---- 12. GALLERY ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 2px dashed var(--grey-border);
}
.gallery-empty i  { font-size: 3rem; color: var(--grey-border); margin-bottom: 16px; }
.gallery-empty h3 { color: var(--text-light); margin-bottom: 8px; font-size: 1.1rem; }
.gallery-empty p  { color: var(--text-light); font-size: 0.875rem; }

/* ---- 13. CONTACT ---- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: start;
}
.contact-list { display: flex; flex-direction: column; gap: 24px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-item__icon i { color: var(--green-dark); font-size: 1.05rem; }
.contact-item__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  margin-bottom: 3px;
}
.contact-item__value { font-size: 0.92rem; color: var(--text-dark); font-weight: 500; }
.contact-item__value a { color: var(--green-dark); }
.contact-item__value a:hover { text-decoration: underline; }

.area-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.area-tag {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1px solid rgba(37,99,235,0.2);
}

.contact-map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--grey-border);
  min-height: 380px;
  background: var(--green-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-light);
}
.contact-map-box i  { font-size: 2.5rem; color: var(--green-mid); opacity: 0.45; }
.contact-map-box p  { font-size: 0.875rem; }
.contact-map-box iframe { width: 100%; height: 380px; border: 0; display: block; }

/* ---- 14. FOOTER ---- */
.footer {
  background: #070f1e;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer__brand-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer__logo-mark {
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--green-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold);
  overflow: hidden;
  flex-shrink: 0;
}
.footer__logo-mark img { width: 100%; height: 100%; object-fit: contain; }
.footer__brand-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.1;
}
.footer__brand-sub { font-size: 0.68rem; color: rgba(255,255,255,0.4); }
.footer__desc { font-size: 0.855rem; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 18px; }
.footer__heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer__links { display: flex; flex-direction: column; gap: 8px; }
.footer__link {
  font-size: 0.855rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--white); }
.footer__contact-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 10px;
  font-size: 0.855rem;
  color: rgba(255,255,255,0.6);
}
.footer__contact-row i { color: var(--gold); font-size: 0.85rem; margin-top: 3px; flex-shrink: 0; }
.footer__contact-row a { color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__contact-row a:hover { color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---- 15. UTILITIES ---- */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.placeholder-note {
  font-size: 0.75rem;
  color: var(--text-light);
  font-style: italic;
}

/* ---- 16. RESPONSIVE ---- */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-height: 64px; }
  .section { padding: 56px 0; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 56px 0 48px; }
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }

  .trust-bar__inner { gap: 20px; }

  .services-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  .contact-layout { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 24px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .form-row-2 { grid-template-columns: 1fr; }
  .service-checks { grid-template-columns: 1fr; }
  .quote-head, .quote-body { padding: 24px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .btn--lg { padding: 14px 24px; font-size: 0.92rem; }
}
