/* =============================================
   COTECA — SHARED STYLESHEET
   Construction · London · India
   ============================================= */

/* ── Outfit (headings) — geometric, authoritative, construction-sector feel
       Used by UK property & build brands; strong at heavy weights
   ── Inter (body) — gold standard for marketplace readability
       Used by TaskRabbit, Checkatrade, all major UK trades platforms ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── Brand colours ── */
  --primary:       #C8460D;   /* deep brick / terracotta                  */
  --primary-dark:  #A33708;   /* darker brick on hover                    */
  --primary-light: #FEF0E6;   /* warm tint for tags / highlights          */
  --gold:          #D4920A;   /* saffron / turmeric accent (India-inspired)*/
  --gold-light:    #FEF5E0;   /* soft gold tint                           */

  /* ── Dark / structural ── */
  --navy:          #1C2B3A;   /* deep charcoal-slate (London professional)*/
  --navy-light:    #2C4560;   /* medium slate                             */

  /* ── Warm neutral grays ── */
  --gray-50:       #F7F3EE;   /* warm cream page background               */
  --gray-100:      #EDE6DC;   /* warm light surface                       */
  --gray-200:      #D9CFBF;   /* warm border                              */
  --gray-400:      #9E9080;   /* mid tone                                 */
  --gray-600:      #6B6054;   /* body text light                          */
  --gray-700:      #4A4238;   /* body text                                */
  --gray-800:      #332D26;   /* strong label text                        */
  --text:          #1E1914;   /* near-black with warm undertone           */
  --white:         #FFFFFF;

  /* ── UI ── */
  --radius:        12px;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 12px 40px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--text);
  background: var(--gray-50);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* Outfit for all headings — geometric confidence, reads strong at every weight.
   The same family also works for nav logo / CTAs to keep the palette tight. */
h1, h2, h3, h4, h5 {
  font-family: 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.3px;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 88px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}
.logo span { color: var(--primary); }

.navbar .logo {
  display: inline-flex;
  align-items: center;
  width: 204px;
  height: 74px;
  line-height: 0;
}

.navbar .logo-img {
  display: block;
  width: auto;
  height: 100%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-800);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .15s;
  white-space: nowrap;
}
.nav-links a:hover { background: var(--gray-100); color: var(--navy); }

.nav-links .btn-primary {
  background: var(--primary);
  color: var(--white) !important;
  border-radius: 6px;
  font-weight: 700;
  padding: 9px 20px;
}
.nav-links .btn-primary:hover { background: var(--primary-dark); }

.nav-links .btn-secondary {
  background: transparent;
  color: var(--navy) !important;
  border: 2px solid var(--navy);
  border-radius: 6px;
  font-weight: 700;
  padding: 8px 20px;
}
.nav-links .btn-secondary:hover { background: var(--navy); color: var(--white) !important; }

.nav-links .btn-ghost {
  color: var(--gray-600) !important;
}

.nav-user-label {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  padding: 8px 6px;
  white-space: nowrap;
}

.nav-action-btn {
  border: none;
  background: transparent;
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .15s;
}

.nav-action-btn:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.nav-action-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  margin-left: auto;
  color: var(--navy);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--gray-200);
  gap: 4px;
}
.mobile-menu a {
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 500;
  color: var(--text);
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--gray-100); }
.mobile-menu.open { display: flex; }

.mobile-menu .nav-user-label.mobile {
  padding: 12px 16px 4px;
}

.mobile-menu .nav-action-btn.mobile {
  text-align: left;
  padding: 12px 16px;
}

/* ── SECTIONS ── */
.section {
  padding: 80px 24px;
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  padding: 5px 14px;
  border-radius: 4px;
  margin-bottom: 12px;
  font-family: 'Outfit', sans-serif;
}
.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--gray-600);
  max-width: 520px;
  margin: 0 auto;
}

/* ── BUTTONS ── */
.btn-main {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .97rem;
  transition: all .2s;
  border: none;
  letter-spacing: .3px;
}
.btn-main:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200,70,13,.35);
}

.btn-secondary-lg {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  padding: 13px 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .97rem;
  transition: all .2s;
}
.btn-secondary-lg:hover { background: var(--navy); color: var(--white); }

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 14px 34px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .97rem;
  transition: all .2s;
  border: none;
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }

/* ── FORM ELEMENTS ── */
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 7px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: .95rem;
  font-family: 'Inter', inherit;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200,70,13,.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group .hint { font-size: .78rem; color: var(--gray-400); margin-top: 5px; }

/* ── PAGE HERO ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 60px 24px;
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; color: var(--white); font-weight: 800; margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; color: rgba(255,255,255,.8); max-width: 500px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  background: var(--white);
  padding: 14px 24px;
  font-size: .83rem;
  color: var(--gray-600);
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb a { color: var(--primary); }
.breadcrumb span { margin: 0 8px; }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
}
.badge-green  { background: #DCFCE7; color: #166534; }
.badge-blue   { background: #DBEAFE; color: #1E40AF; }
.badge-orange { background: var(--primary-light); color: var(--primary); }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  padding: 64px 24px 0;
  color: rgba(255,255,255,.75);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-brand .logo { color: var(--white); }
.footer-brand p {
  font-size: .88rem;
  margin-top: 14px;
  line-height: 1.7;
  max-width: 280px;
}
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  width: 38px; height: 38px;
  background: rgba(255,255,255,.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  transition: background .2s;
}
.social-links a:hover { background: var(--primary); }

.footer-col h5 {
  font-family: 'Outfit', sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.6);
  margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.35);
  max-width: 1200px;
  margin: 0 auto;
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--primary); }

/* ── CTA BANNER (used on multiple pages) ── */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 70px 24px;
  text-align: center;
}
.cta-banner h2 {
  font-size: 2.8rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 14px;
}
.cta-banner p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  max-width: 500px;
  margin: 0 auto 36px;
}
.cta-dual {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-white {
  background: #fff;
  color: var(--primary);
  padding: 15px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-white:hover { background: var(--gray-100); transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.7);
  padding: 14px 36px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  display: inline-block;
  transition: all .2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* ── STAR RATING ── */
.star-rating { color: #E8A020; }

/* ── AVATAR ── */
.avatar {
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-inner {
    height: 68px;
  }

  .navbar .logo {
    width: 148px;
    height: 54px;
  }

  .nav-links { display: none; }
  .hamburger { display: block; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .section-title { font-size: 1.85rem; }
  .page-hero h1 { font-size: 1.9rem; }
}
