/* =========================================================
   Framecode Creations — shared stylesheet
   Used by every page. Change a colour or font here and it
   updates across the whole site.
   ========================================================= */


/* ---------- 1. Brand colours and fonts ---------- */

:root {
  --black: #0D0D0E;          /* main background */
  --surface: #18171A;        /* slightly lighter panels */
  --line: #3A352E;           /* thin borders on dark */
  --gold: #A37F40;           /* brand gold (from logo) */
  --gold-light: #C9A35E;     /* gold on hover */
  --ivory: #ECE5D6;          /* main text on dark */
  --paper: #F3EEE4;          /* light section background */
  --paper-line: #CFC5B2;     /* thin borders on light */
  --paper-image: #DCD3C2;    /* image placeholder on light */

  --text-soft: #CFC7B8;      /* paragraphs on dark */
  --text-muted: #B9B1A2;     /* small text on dark */
  --text-faint: #8F877A;     /* placeholder labels */
  --ink-soft: #5E564A;       /* paragraphs on light */

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Jost', 'Helvetica Neue', Arial, sans-serif;
}


/* ---------- 2. Base ---------- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

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

a { color: var(--gold); }
a:hover { color: var(--gold-light); }

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.1;
}

h1 { font-size: clamp(46px, 6vw, 88px); line-height: 1.04; }
h2 { font-size: clamp(34px, 4vw, 56px); }
h3 { font-size: 30px; font-weight: 600; }

p { margin: 0; }


/* ---------- 3. Layout helpers ---------- */

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
}

.section { padding: 120px 0; }
.section--tight { padding: 80px 0; }
.section--no-top { padding-top: 0; }

.section--light   { background: var(--paper); color: var(--black); }
.section--surface { background: var(--surface); }
.section--lined   { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--line-top { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 48px; }
.section-head p { margin-top: 12px; color: var(--text-soft); max-width: 640px; }
.section--light .section-head p { color: var(--ink-soft); }

/* Heading on the left, link on the right */
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;   /* link lines up with the heading text */
  gap: 24px;
}

/* Two columns that stack on small screens */
.split {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 64px;
}
.split > * { flex: 1 1 min(440px, 100%); min-width: 0; }
.split--top { align-items: flex-start; }
.split--reverse { flex-direction: row-reverse; }   /* image on the right on desktop, still first on phones */

/* Responsive grids */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 48px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--gallery { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.gallery-wide { grid-column: 1 / -1; }   /* one photo across the whole row */
.photo--wide { width: 100%; height: auto; aspect-ratio: 3 / 2; }
.grid--work { grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 32px; }

.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }


/* ---------- 4. Text styles ---------- */

.lead {
  margin-top: 24px;
  max-width: 580px;
  color: var(--text-soft);
  font-size: 19px;
}

.eyebrow {          /* small gold label above a heading */
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.muted { color: var(--text-muted); font-size: 15px; }
.note  { margin-top: 32px; color: var(--ink-soft); font-size: 15px; }


/* ---------- 5. Buttons and links ---------- */

.btn {
  display: inline-block;
  padding: 16px 30px;
  background: var(--gold);
  color: var(--black);
  font-weight: 600;
  text-decoration: none;
  border: none;
  font-family: var(--sans);
  font-size: 16px;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
}
.btn:hover { color: var(--black); filter: brightness(1.12); transform: translateY(-1px); }

.btn--outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--ivory);
  padding: 15px 30px;
  transition: box-shadow 0.2s ease;
}
.btn--outline:hover { color: var(--ivory); filter: none; transform: none; box-shadow: inset 0 0 0 1px currentColor; }

.btn--small { padding: 12px 22px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.center .btn-row { justify-content: center; }

/* Underline that draws in on hover */
.link-line {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  padding-bottom: 3px;
  transition: background-size 0.35s ease;
}
.link-line:hover { background-size: 100% 1px; }


/* ---------- 6. Header and menu ---------- */

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ivory);
  text-decoration: none;
}
.logo:hover { color: var(--ivory); }
.logo img { height: 34px; width: auto; }
.logo-text { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 30px; font-weight: 500; }
.logo-tag  { margin-top: 5px; padding-left: 5px; font-size: 10px; font-weight: 500; letter-spacing: 5px; color: var(--gold); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }

/* Menu button for phones and small laptops (hidden on bigger screens) */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  background: transparent;
  color: var(--ivory);
  border: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 15px;
  cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s ease, background 0.25s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }
.nav a:not(.btn) { color: var(--ivory); }
.nav a[aria-current="page"] {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 6px;
  background: none;
}


/* ---------- 7. Footer ---------- */

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  color: var(--text-muted);
  font-size: 15px;
}
.site-footer strong { color: var(--ivory); font-weight: 400; display: block; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: var(--text-muted); }


/* ---------- 8. Image placeholders ----------
   Grey boxes that show where a photo goes.
   When you have the photo, replace the whole
   <div class="img-slot ..."> with an <img> tag
   (each one has a comment above it in the HTML). */

.img-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line);
  color: var(--text-faint);
  font-size: 15px;
}
.section--light .img-slot { background: var(--paper-image); border-color: var(--paper-line); color: var(--ink-soft); }

/* Heights for the different slot sizes */
.img-slot--short, .photo--short { height: 240px; }
.img-slot--card,  .photo--card  { height: 300px; }
.img-slot--tall,  .photo--tall  { height: 360px; }
.img-slot--large, .photo--large { height: 440px; }
/* 4:3 cards (website screenshots and project photos) */
.img-slot--project, .photo--project { width: 100%; height: auto; aspect-ratio: 4 / 3; }
.photo--project { border: 1px solid var(--line); }
.section--light .photo--project { border-color: #BFB4A0; }

.img-slot--avatar { width: 120px; height: 120px; flex: 0 0 120px; font-size: 13px; }

/* Use these classes on your real <img> tags */
.photo { width: 100%; object-fit: cover; }
.photo--avatar { width: 120px; height: 120px; flex: 0 0 120px; object-fit: cover; }


/* ---------- 9. Home hero (camera viewfinder) ---------- */

.hero-section { padding: 40px 0 120px; }

.hero {
  position: relative;
  min-height: 620px;
  padding: 56px;
  display: flex;
  align-items: flex-end;
  background: var(--surface);
  overflow: hidden;
}

/* The hero photo sits behind the text */
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .img-slot { height: 100%; align-items: flex-start; padding-top: 32px; border: none; background: none; }
.hero-media::after {   /* darkens the photo so the text stays readable */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 14, 0.85), rgba(13, 13, 14, 0.15));
}

.hero-content { position: relative; z-index: 1; max-width: 920px; }
.hero h1 { font-size: clamp(48px, 6.4vw, 96px); line-height: 1.02; letter-spacing: -1px; }
.hero h1 span { display: block; }

/* Gold viewfinder corners and focus circle */
.corner { position: absolute; z-index: 1; width: 56px; height: 56px; border: 0 solid var(--gold); }
.corner--tl { top: 20px; left: 20px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: 20px; right: 20px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: 20px; left: 20px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: 20px; right: 20px; border-bottom-width: 2px; border-right-width: 2px; }

.focus-ring {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 28px;
  margin: -14px 0 0 -14px;
  border: 1px solid rgba(163, 127, 64, 0.6);
  border-radius: 50%;
}


/* ---------- 10. Content blocks ---------- */

/* Card with a gold line on top (services, features) */
.feature { border-top: 1px solid var(--gold); padding-top: 28px; }
.feature svg { width: 32px; height: 32px; margin-bottom: 18px; }
.feature h3 { margin-bottom: 10px; }
.feature p { color: var(--text-soft); margin-bottom: 16px; }

/* Grid of boxes separated by thin lines */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));   /* 3 per row on desktop, so 6 tiles fill 2 rows */
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.tile { background: var(--black); padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.tile strong { font-weight: 600; font-size: 19px; }
.tile p { color: var(--text-muted); font-size: 15px; flex: 1 1 auto; }
.tile h3 { font-size: 32px; }

.section--light .tiles { background: var(--paper-line); border-color: var(--paper-line); }
.section--light .tile { background: var(--paper); }
.section--light .tile p { color: var(--ink-soft); }

/* Project card (image + title + type) */
.project-title { margin-top: 14px; font-weight: 600; }
.project-type { color: var(--text-muted); font-size: 15px; }
.section--light .project-type { color: var(--ink-soft); }

/* Bordered call-out box */
.callout {
  border: 1px solid var(--gold);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}
.callout > div { flex: 1 1 min(520px, 100%); min-width: 0; }
.callout h2 { font-size: clamp(32px, 3.6vw, 48px); margin-bottom: 12px; }
.callout p { color: var(--text-soft); max-width: 620px; }

/* Numbered steps */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 32px; }
.steps li { flex: 1 1 200px; min-width: 0; }
.step-num { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--gold); }
.steps strong { display: block; margin: 12px 0 6px; font-weight: 600; }
.steps p { color: var(--text-muted); font-size: 15px; }

/* Simple bulleted list */
.list { margin: 0; padding-left: 20px; color: var(--text-soft); display: flex; flex-direction: column; gap: 6px; }

/* "Handled by / Where / Starting from" row */
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.meta-row span { display: block; color: var(--text-muted); font-size: 14px; }
.meta-row strong { font-weight: 600; }

/* Service block on the Services page */
.service h2 { font-size: clamp(34px, 4vw, 54px); }
.service p { margin: 18px 0 24px; color: var(--text-soft); }

/* "What makes it different" list on the Websites page */
.highlights-title { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--gold); margin: 0 0 12px; }
.project-shot { display: block; }
.project-shot img { transition: transform 0.4s ease; }
.project-shot:hover img { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .project-shot img { transition: none; } .project-shot:hover img { transform: none; } }

/* Social media platforms panel (Services page) */
.platforms { border: 1px solid var(--line); background: var(--surface); }
.platform { display: flex; gap: 20px; align-items: flex-start; padding: 28px; }
.platform + .platform { border-top: 1px solid var(--line); }
.platform svg { width: 36px; height: 36px; flex: 0 0 36px; }
.platform strong { display: block; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.2; }
.platform span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 15px; }

/* Team member */
.person-row { display: flex; gap: 24px; align-items: center; }
.person-name { font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.2; }
.person-role { color: var(--gold); font-weight: 600; margin-top: 4px; }
.person-bio { color: var(--text-soft); margin-top: 16px; }


/* ---------- 11. Packages (Schools page) ---------- */

.package-featured {
  background: var(--black);
  color: var(--ivory);
  padding: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  margin-bottom: 72px;
}
.package-featured > div { flex: 1 1 min(400px, 100%); min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.package-featured p { color: var(--text-soft); }
.package-featured .btn { align-self: flex-start; }

.badge { align-self: flex-start; background: var(--gold); color: var(--black); font-size: 13px; font-weight: 600; padding: 4px 12px; }

.price-row { display: flex; flex-wrap: wrap; gap: 32px; }
.price { font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--gold); }
.price-label { color: var(--text-muted); font-size: 14px; margin-top: 6px; }

.included { list-style: none; margin: 0; padding: 0; }
.included li { padding: 16px 0; border-top: 1px solid var(--line); }
.included li:last-child { border-bottom: 1px solid var(--line); }
.included strong { display: block; font-weight: 600; }
.included span { color: var(--text-muted); font-size: 15px; }

.packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.package { border: 1px solid var(--paper-line); padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.package h3 { font-size: 30px; }
.package .amount { font-family: var(--serif); font-size: 48px; line-height: 1; }
.package .list { color: #3F3A33; }
.package--dark { background: var(--black); color: var(--ivory); border-color: var(--black); }
.package--dark .list { color: var(--text-soft); }

/* Fake browser bar used on the Schools page */
.browser { border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-url { flex: 1 1 auto; background: var(--black); padding: 6px 14px; color: var(--text-muted); font-size: 14px; }
.browser .tiles { border: none; }


/* ---------- 12. Filter buttons (Work, Photography) ---------- */

.filters { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.filter-btn {
  min-height: 44px;
  padding: 10px 22px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
  color: var(--ivory);
  border: 1px solid #5A5348;
}
.filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--black); border-color: var(--gold); }
.is-hidden { display: none; }

figure { margin: 0; min-width: 0; }
figcaption { margin-top: 10px; color: var(--text-muted); font-size: 15px; }


/* ---------- 13. Contact form ---------- */

.contact-card { border: 1px solid var(--line); padding: 32px; }
.contact-card .person-name { font-size: 32px; margin: 4px 0 16px; }

.form { background: var(--surface); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.form h2 { font-size: 36px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 15px; }
.field input, .field select, .field textarea {
  min-height: 48px;
  padding: 12px 14px;
  background: var(--black);
  border: 1px solid #5A5348;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
}
.field textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.form .btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-status { margin: 0; font-size: 15px; min-height: 1.6em; }
.form-status.is-success { color: #8FC79A; }
.form-status.is-error { color: #E59A8C; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* ---------- 14. Animations ----------
   Kept small on purpose. Visitors who turn off
   motion in their device settings see none of it. */

@keyframes rise   { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes in-tl  { from { opacity: 0; transform: translate(-26px, -26px); } }
@keyframes in-tr  { from { opacity: 0; transform: translate(26px, -26px); } }
@keyframes in-bl  { from { opacity: 0; transform: translate(-26px, 26px); } }
@keyframes in-br  { from { opacity: 0; transform: translate(26px, 26px); } }
@keyframes focus  {
  0%   { opacity: 0; transform: scale(2.2); }
  55%  { opacity: 1; transform: scale(0.88); border-color: var(--gold); }
  100% { opacity: 1; transform: scale(1); }
}

.rise { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.52s; }

.corner--tl { animation: in-tl 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.corner--tr { animation: in-tr 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.corner--bl { animation: in-bl 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.corner--br { animation: in-br 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
.focus-ring { animation: focus 1s cubic-bezier(0.3, 0.7, 0.2, 1) 0.7s both; }

@media (prefers-reduced-motion: reduce) {
  .rise, .corner, .focus-ring { animation: none; }
  .btn, .link-line { transition: none; }
  .btn:hover { transform: none; }
}


/* ---------- 15. Small screens ---------- */

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); background: none; }
  .nav .btn { margin-top: 16px; text-align: center; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .section { padding: 72px 0; }
  .section--tight { padding: 48px 0; }
  .hero-section { padding: 16px 0 72px; }
  .hero { padding: 28px; min-height: 500px; }
  .hero h1 { font-size: 40px; letter-spacing: 0; }
  .lead { font-size: 17px; }
  .corner { width: 32px; height: 32px; }
  .corner--tl, .corner--tr { top: 12px; }
  .corner--bl, .corner--br { bottom: 12px; }
  .corner--tl, .corner--bl { left: 12px; }
  .corner--tr, .corner--br { right: 12px; }
  .logo { gap: 10px; }
  .logo-name { font-size: 24px; }
  .logo-tag { font-size: 8px; letter-spacing: 4px; }
  .logo img { height: 22px; }
  .site-header .container { padding-top: 20px; padding-bottom: 20px; gap: 12px; }
  .btn-row .btn { flex: 1 1 auto; text-align: center; }
  .section-head { margin-bottom: 32px; }
  .img-slot--large, .photo--large { height: 320px; }
  .site-footer .container { flex-direction: column; }
  .callout, .package-featured, .form { padding: 28px; }
  .split { gap: 40px; }
}
