/* styles.css — Camden Construction Group LLC
   Matches the provided index.html classes exactly
*/

@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap");

:root{
  /* Palette inspired by your logo */
  --cream: #f6f2ea;
  --ink: #1f2321;
  --sage: #6f7f6a;
  --sage-2: #94a08c;

  /* Site theme */
  --bg: #0f1211;
  --surface: rgba(255,255,255,0.06);
  --surface-2: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.12);

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);

  --shadow: 0 14px 36px rgba(0,0,0,0.45);
  --radius: 18px;

  --container: 1120px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 520px at 10% 0%, rgba(111,127,106,0.28), transparent 55%),
    radial-gradient(900px 520px at 90% 10%, rgba(148,160,140,0.18), transparent 55%),
    linear-gradient(180deg, #0b0d0c 0%, var(--bg) 55%, #0b0d0c 100%);
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }

/* Shared layout wrapper used in your HTML */
.wrap{
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

/* =========================
   Header / Top Nav
========================= */
.top{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15,18,17,0.72);
  border-bottom: 1px solid var(--border);
}

.top .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 240px;
}

/* This is your NEW logo in the header */
.logo-img{
  width: 38px;
  height: 38px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 10px 22px rgba(0,0,0,0.35);
  flex: 0 0 auto;
}

.name{
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.05;
}

.tag{
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

/* Nav links in your HTML: <nav class="nav"> ... */
.nav{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a{
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  transition: 180ms ease;
}
.nav a:hover{
  color: var(--text);
  background: rgba(255,255,255,0.06);
}

/* Mobile menu button in your HTML */
.menu{
  display:none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor:pointer;
}

/* =========================
   Buttons
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(111,127,106,0.95), rgba(111,127,106,0.72));
  color: #0b0d0c;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 140ms ease, filter 140ms ease;
}
.btn:hover{ transform: translateY(-1px); filter: brightness(1.05); }
.btn:active{ transform: translateY(0px); }

.btn.ghost{
  background: rgba(255,255,255,0.05);
  color: var(--text);
  border-color: rgba(255,255,255,0.14);
  box-shadow: none;
}

.btn.small{
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.btn.full{
  width: 100%;
}

/* =========================
   Hero
========================= */
.hero{
  padding: 54px 0 24px;
}

.grid{
  display:grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: start;
}

.hero h1{
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: clamp(28px, 3.4vw, 44px);
}

.hero p{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

/* ✅ Keep your spacing rules for only actions + chips */
.actions{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.chips{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 16px;
}
.chips span{
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* =========================
   Card + Forms
========================= */
.card{
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.04));
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow);
  padding: 18px;
}

.card h2, .card h3{
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
}

.form{
  display:grid;
  gap: 10px;
}

label{
  display:grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  outline:none;
  font-size: 14px;
}

textarea{ resize: vertical; }

input:focus, textarea:focus{
  border-color: rgba(148,160,140,0.65);
  box-shadow: 0 0 0 4px rgba(148,160,140,0.18);
}

.contactline{
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.contactline a{ color: var(--text); }
.contactline a:hover{ text-decoration: underline; }

/* =========================
   Sections
========================= */
.section{
  padding: 34px 0;
}

.section.alt{
  background: rgba(255,255,255,0.03);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.section h2{
  margin: 0 0 14px;
  font-family: "Cinzel", serif;
  letter-spacing: 0.02em;
  font-size: 22px;
}

.muted{
  color: var(--muted);
}

/* Services cards */
.cards{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.box{
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.30);
}

.box h3{
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
}

.box p{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 14px;
}

/* Projects gallery */
.projects{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.proj{
  margin: 0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  box-shadow: 0 10px 28px rgba(0,0,0,0.35);
}

.proj img{
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.caption{
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Contact section layout */
.contact{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: start;
}

.contactbox{
  margin-top: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* =========================
   Footer
========================= */
.foot{
  padding: 28px 0 44px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   Responsive
========================= */
@media (max-width: 980px){
  .grid{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .projects{ grid-template-columns: 1fr; }
  .contact{ grid-template-columns: 1fr; }
  .brand{ min-width: auto; }
}

@media (max-width: 640px){
  .top .wrap{ padding: 12px 0; }
  .name{ font-size: 15px; }
  .btn{ width: 100%; }
  .actions{ gap: 12px; }
  .nav{
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 520px){
  /* Make header tight on small phones */
  .logo-img{ width: 34px; height: 34px; border-radius: 9px; }
}