@charset "UTF-8";

/* ============================
   CSS RESET
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
body {
  min-height: 100%;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
a { text-decoration: none; color: inherit; }
img, picture { max-width: 100%; height: auto; display: block; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
textarea { resize: vertical; }
:focus { outline-offset: 2px; }
b, strong { font-weight: 600; }
video, canvas, iframe { max-width: 100%; }
html, body { overscroll-behavior: none; }

/* ============================
   Variables / Base
   ============================ */
:root{
  --accent: #15476A;
  --bg: #ffffff;
  --muted: #6b6b6b;
  --soft: #f6f8fa;
  --card-shadow: 0 6px 18px rgba(21,71,106,0.08);
  --dropdown-shadow: 0 18px 30px rgba(21,71,106,0.15);
  --radius: 12px;
  --max-hero-h: 500px;
  --transition-fast: 250ms;
}

html, body { height: 100%; }
body {
  font-family: "Lora", serif;
  background: var(--bg);
  color: #222;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ============================
   Header / Navigation
   ============================ */
.site-header{
  background: white;
  border-bottom: 1px solid rgba(21,71,106,0.06);
  position:relative;
  top:0;
  z-index:50;
}
.logo-desktop-tablet {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 20px 10px;
  position: relative;
}
.logo-pair {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
}

.logo img { 
 width: auto; height: 150px; 
}

/* Make sure inner elements don't misalign */
.symbol-logo, .main-logo { display: block;
}

.symbol-logo { 
 width: auto; height: 100px; 
}
.main-logo h1 {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: 36px;
  color: var(--accent);
  line-height: 1;
}
.main-logo .tag {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.no-shadow{ box-shadow:none !important; }

/* Topbar mobile */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 16px;
  gap:12px;
}
.topbar .mobile-left{ width:auto; height:60px; }


.topbar .main-logo-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  margin-right: auto;
}

.main-logo-inline h1{ 
 margin-bottom: 0;    /* no space at all below the name */
  line-height: 1.3;   /* tighter line height */
 margin:0; 
 font-family:"EB Garamond", serif; 
 font-size:30px; 
 color:var(--accent); 
 text-align:center; }


/* Mobile tagline below inline logo */
.mobile-tag {
  margin: 0;                /* remove vertical gap */
  font-size: 14px;          /* slightly smaller for mobile */
  line-height: 1;         /* tight spacing */
  color: var(--muted);
  text-align: center;
}



/* Main nav */
.main-nav ul, .dropdown-nav ul {
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  gap:4px;
  align-items:center;
  justify-content:center;
}
.main-nav{ padding:10px 0 18px; }
.main-nav a, .dropdown-nav a{
  color:#222;
  text-decoration:none;
  padding:8px 12px;
  border-radius:8px;
  transition:all var(--transition-fast) ease;
  font-weight:600;
}
.main-nav a:hover { background: rgba(21,71,106,0.06); color:var(--accent) }
.main-nav li { display:inline-block }
.desktop-only { display:none }

/* Dropdown menu (mobile) */
.hamburger{
  width:44px; height:44px; display:flex; align-items:center; justify-content:center;
  background:transparent; border-radius:10px; border:none; cursor:pointer;
}
.hamburger span{
  display:block; width:22px; height:2px; background:#222; margin:3px 0;
  transition:transform 200ms ease, opacity 200ms ease;
}
.dropdown-nav{
  position:absolute; right:16px; top:64px; background:white; padding:12px;
  border-radius:14px; box-shadow: var(--dropdown-shadow); min-width:180px;
  transform-origin:top right; display:none;
}
.dropdown-nav ul { flex-direction:column; gap:6px; }
.dropdown-nav a { display:block; padding:8px 10px; color:#333 }
.dropdown-nav a:hover { background:var(--soft); color:var(--accent) }

/* Hamburger active state */
.hamburger.active span:nth-child(1){ transform: translateY(6px) rotate(45deg) }
.hamburger.active span:nth-child(2){ opacity:0 }
.hamburger.active span:nth-child(3){ transform: translateY(-6px) rotate(-45deg) }

/* ============================
   Hero slideshow
   ============================ */
.hero { width: 100%; overflow: hidden; background: transparent; position: relative; }
.slides { position: relative; width: 100%; max-height: var(--max-hero-h); min-height: 400px; }
.slide {
  display: block;
  width: 100%;
  height: auto;
  max-height: var(--max-hero-h);
  object-fit: contain;
  opacity: 0;
  position: absolute;
  left: 0; top: 0;
  transition: opacity 900ms ease, filter 900ms ease;
  will-change: opacity;
  filter: blur(5px);
}
.slide.active { opacity: 1; position: relative; filter: blur(0); }
.hero-controls {
  position: absolute;
  top: 50%; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
}
.control {
  pointer-events: auto;
  background: rgba(255,255,255,0.85);
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  margin: 0 8px;
  font-size: 18px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
}

/* ============================
   Content / Cards
   ============================ */
.container { max-width: 1140px; margin: 36px auto; padding: 0 20px; }
.cards-1 { gap: 18px; display: flex; flex-direction: column; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: white; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--card-shadow); border: 1px solid rgba(21,71,106,0.04);
  transition: transform var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(21,71,106,0.15);
}
.card h2 {
  font-family: "EB Garamond", serif;
  margin-top: 0;
  color: var(--accent);
  text-align: center;
}
.card h3 {
  font-family: "EB Garamond", serif;
  margin-top: 0;
  color: var(--muted);
  text-align: center;
  font-weight: 400;
}
.card h4 {
  font-family: "EB Garamond", serif;
  margin-top: 0;
  text-align: center;
  font-weight: 400;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid rgba(21,71,106,0.06);
  background: white;
  padding: 18px 0;
}
.site-footer p { margin: 0; text-align: center; color: var(--muted); }

/* ============================
   Forms
   ============================ */
form { display: flex; flex-direction: column; gap: 14px; }
form label { font-weight: 600; margin-bottom: 4px; color: var(--accent); }
form input, form textarea {
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(21,71,106,0.2);
  font-family: inherit; font-size: 16px;
  transition: border-color var(--transition-fast) ease, box-shadow var(--transition-fast) ease;
}
form input:focus, form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 8px rgba(21,71,106,0.2);
  outline: none;
}
form button {
  background-color: var(--accent);
  color: #fff;
  padding: 12px 20px;
  border: none; border-radius: var(--radius);
  font-size: 16px; font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast) ease;
}
form button:hover {
  background-color: #0f3550;
  box-shadow: 0 6px 16px rgba(21,71,106,0.3);
}

/* ============================
   Work / Portfolio Images
   ============================ */
.cards-3 .card img {
  width: 100%; height: 250px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: transform var(--transition-fast) ease;
}
.cards-3 .card img:hover { transform: scale(1.03); }

/* ============================
   Page Banner
   ============================ */
.page-banner {
  background: var(--soft);
  padding: 40px 0;
  text-align: center;
}
.page-banner h2 {
  margin: 0;
  font-family: "EB Garamond", serif;
  font-size: 32px;
  color: var(--accent);
  position: relative;
  display: inline-block;
}
.page-banner h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 8px auto 0;
  border-radius: 2px;
}

/* ============================
   Image Modal
   ============================ */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  padding: 20px;
  z-index: 9999;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast) ease;
}
.modal.active { display: flex; opacity: 1; }
.modal-content {
  background: var(--bg);
  max-width: 900px;
  width: 95%;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-content img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 16px;
  max-height: calc(90vh - 120px);
  object-fit: contain;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--transition-fast) ease;
}
.modal-close:hover { color: var(--accent); }

/* Modal arrows */
.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: auto;
  background: rgba(255,255,255,0.85);
  border: none;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 18px;
  box-shadow: var(--card-shadow);
  cursor: pointer;
  z-index: 50;
  opacity: 0;
  transition: opacity 300ms ease, background var(--transition-fast) ease, transform 300ms ease;
}
.modal-arrow:hover { background: rgba(255,255,255,1); }
.modal-arrow.left { left: -42px; }
.modal-arrow.right { right: -42px; }
.modal.active .modal-arrow.left { opacity: 1; transform: translateY(-50%) translateX(6px); }
.modal.active .modal-arrow.right { opacity: 1; transform: translateY(-50%) translateX(-6px); }

/* ============================
   Responsive Layouts
   ============================ */
/* Desktop */
@media (min-width: 1025px) {
  .logo-pair {
    flex-direction: column; 
    gap: 8px;                 /* adjust spacing if needed */
}
  .topbar{ display:none }
  .main-nav ul{ gap:28px }
  .symbol-logo{ width:auto; height:180px }
  .main-logo h1{ font-size:36px }
  .main-logo .tag{ font-size:16px }
  .cards{ grid-template-columns:repeat(3,1fr) }
}
/* Tablet */
@media (max-width:1024px) and (min-width:601px){
  .logo-desktop-tablet { padding: 18px 20px 8px; }
  .logo-pair{ flex-direction: row;}
  .topbar{ display:none }
  .main-nav ul{ gap:2px }
  .symbol-logo{ width:auto; height:100px }
  .main-logo h1{ font-size:36px }
  .main-logo .tag{ font-size:16px }
  .cards{ grid-template-columns:repeat(3,1fr) }
  .slide{ min-height:500px; max-height:500px }
}
/* Mobile */
@media (max-width:600px){
  .logo-desktop-tablet{ display:none }
  .main-nav{ display:none }
  .topbar{ display:flex }
  .cards{ grid-template-columns:1fr }
  .hero-controls{ display:none }
  .slide{ min-height:400px; max-height:400px }
  /* Work/Portfolio mobile */
  .cards-3{ display:flex; flex-direction:column; gap:18px }
  .cards-3 .card img{ height:200px }
  .cards-3 .card h2{ font-size:16px }
  .cards-3 .card h3{ font-size:14px }
  .cards-3 .card h4{ font-size:12px }
  .modal-content { padding: 14px; max-height: 92vh;  /* slightly more room for phones */ }
  .modal-content p { font-size: 18px; }
  .modal-content img { max-height: calc(92vh - 110px); }
  .modal-arrow { display: none; }

/* Small polish */
a{ color:inherit }
