/* ==========================================================================
   Irish Tile & Stone — Design tokens
   Palette: warm plaster ivory, charcoal slate, travertine tan, brass/trowel accent
   ========================================================================== */

:root {
  --plaster: #EDE6D9;
  --plaster-warm: #E4DAC8;
  --slate: #2B2924;
  --slate-soft: #4A473F;
  --travertine: #B9A481;
  --travertine-pale: #D9CDB2;
  --brass: #A8763E;
  --brass-deep: #8A5F2E;
  --grout: #6B6862;
  --paper: #FAF7F0;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Segoe UI", sans-serif;

  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--slate);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brass-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--brass-deep);
  font-weight: 500;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
}

/* -------------------- Grout-line signature divider -------------------- */
.grout-line {
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--travertine) 0px, var(--travertine) 46px,
    var(--brass) 46px, var(--brass) 50px
  );
  opacity: 0.55;
  width: 100%;
}

.grout-rule {
  border: none;
  height: 3px;
  width: 64px;
  background: var(--brass);
  margin: 18px 0 28px;
}

/* -------------------- Header / Nav -------------------- */
header.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--travertine-pale);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.brand {
  font-family: var(--display);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand span.tagline {
  font-family: var(--body);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grout);
  font-weight: 400;
  margin-top: 3px;
}
.brand:hover { text-decoration: none; }

nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}
nav.primary-nav a {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  color: var(--slate-soft);
}
nav.primary-nav a:hover { color: var(--brass-deep); text-decoration: none; }
nav.primary-nav a.active { color: var(--brass-deep); border-bottom: 2px solid var(--brass); padding-bottom: 4px; }

.header-cta {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: var(--slate);
  color: var(--paper) !important;
  padding: 10px 20px;
  border-radius: 2px;
}
.header-cta:hover { background: var(--brass-deep); text-decoration: none; }

/* -------------------- Hero -------------------- */
.hero {
  background: linear-gradient(180deg, var(--plaster) 0%, var(--plaster-warm) 100%);
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
}

.hero-copy p.lede {
  font-size: 1.15rem;
  color: var(--slate-soft);
  max-width: 46ch;
}

.btn {
  display: inline-block;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.88rem;
  padding: 13px 28px;
  border-radius: 2px;
  border: 2px solid var(--slate);
  color: var(--slate) !important;
  margin-right: 12px;
  margin-top: 8px;
}
.btn:hover { background: var(--slate); color: var(--paper) !important; text-decoration: none; }
.btn.solid { background: var(--brass); border-color: var(--brass); color: var(--paper) !important; }
.btn.solid:hover { background: var(--brass-deep); border-color: var(--brass-deep); }

/* -------------------- Texture / photo-placeholder blocks --------------------
   Original CSS-generated "swatch" graphics standing in for real project
   photography. Swap the relevant .texture-block for an <img> of an actual
   completed project whenever photos are available. */

.texture-block {
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 26px -12px rgba(43,41,36,0.35);
}
.texture-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Rotating photo component: stack images, fade between them via JS toggling .is-active */
.rotator {
  position: relative;
  width: 100%;
  height: 100%;
}
.rotator img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.rotator img.is-active {
  opacity: 1;
}
.texture-block .label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 10px 14px;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--paper);
  background: linear-gradient(0deg, rgba(43,41,36,0.78), transparent);
}

.tex-ceramic {
  background:
    repeating-linear-gradient(0deg, transparent 0 58px, rgba(43,41,36,0.12) 58px 61px),
    repeating-linear-gradient(90deg, transparent 0 58px, rgba(43,41,36,0.12) 58px 61px),
    linear-gradient(135deg, #E7DFCF, #D3C4A0);
}
.tex-stone {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.25), transparent 40%),
    radial-gradient(circle at 70% 70%, rgba(0,0,0,0.12), transparent 45%),
    linear-gradient(160deg, #8A8477, #5B564C);
}
.tex-slab {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,0.06) 0 3px, transparent 3px 22px),
    linear-gradient(145deg, #3E3B34, #706A5A);
}
.tex-outdoor {
  background:
    repeating-linear-gradient(45deg, rgba(43,41,36,0.10) 0 20px, transparent 20px 40px),
    linear-gradient(160deg, #C7B78E, #A08D66);
}
.tex-bath {
  background:
    repeating-linear-gradient(0deg, transparent 0 30px, rgba(255,255,255,0.5) 30px 32px),
    repeating-linear-gradient(90deg, transparent 0 30px, rgba(255,255,255,0.5) 30px 32px),
    linear-gradient(135deg, #DCE3DE, #B7C4BC);
}
.tex-fireplace {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(168,118,62,0.55), transparent 60%),
    linear-gradient(160deg, #2B2924, #4A473F);
}

/* -------------------- Sections -------------------- */
section { padding: 64px 0; }
section.alt { background: var(--plaster); }

.section-head { max-width: 620px; margin-bottom: 40px; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--paper);
  border: 1px solid var(--travertine-pale);
  border-radius: 3px;
  padding: 28px 26px;
}
.card .eyebrow { display: block; margin-bottom: 8px; }

.stat-row {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.stat-row .stat strong {
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--brass-deep);
  display: block;
  line-height: 1;
}
.stat-row .stat span {
  font-size: 0.82rem;
  color: var(--grout);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Material swatch strip (Services page signature device) */
.swatch-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin: 32px 0 8px;
}
@media (max-width: 860px) { .swatch-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 500px) { .swatch-strip { grid-template-columns: repeat(2, 1fr); } }

.swatch {
  border-radius: 3px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 16px -8px rgba(43,41,36,0.4);
}
.swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.swatch span {
  position: absolute;
  bottom: 6px; left: 8px; right: 8px;
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  font-family: var(--display);
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}
.sw-1, .sw-2, .sw-3, .sw-4, .sw-5, .sw-6 { background: var(--travertine-pale); }

/* -------------------- Timeline (About page) -------------------- */
.timeline {
  border-left: 2px solid var(--travertine);
  padding-left: 28px;
  margin-top: 24px;
}
.timeline .entry { margin-bottom: 28px; position: relative; }
.timeline .entry::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--brass);
  border-radius: 50%;
}
.timeline .entry .yr {
  font-family: var(--display);
  color: var(--brass-deep);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

/* -------------------- Contact -------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.contact-item .icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--slate);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 0.95rem;
  flex-shrink: 0;
}
.contact-item strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--grout); }
.contact-item a, .contact-item .val { font-size: 1.05rem; color: var(--slate); }

.service-area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 2;
  gap: 20px;
}
.service-area-list li {
  padding: 6px 0;
  border-bottom: 1px dotted var(--travertine);
  font-size: 0.95rem;
}

/* -------------------- Footer -------------------- */
footer.site-footer {
  background: var(--slate);
  color: var(--plaster-warm);
  padding: 40px 0 26px;
}
footer.site-footer a { color: var(--travertine-pale); }
footer.site-footer .foot-grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
footer.site-footer .brand-foot {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1.1rem;
  color: var(--paper);
}
footer.site-footer .fine {
  margin-top: 24px;
  font-size: 0.78rem;
  color: var(--travertine-pale);
  opacity: 0.75;
}
