/*
Theme Name: Iznik Tile
Theme URI: https://github.com/iznik-tile
Author: Çini Sanatçısı
Author URI: #
Description: Tek sayfalık portfolio teması — geleneksel İznik çini estetiğinden ilham alan tasarım.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iznik-tile
Tags: one-page, portfolio, turkish, art, photography, custom-menu, custom-logo, featured-images
*/

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --cobalt:     #1A4F8A;
  --cobalt-dk:  #0F3060;
  --cobalt-lt:  #2E6FB5;
  --turquoise:  #00A693;
  --turq-lt:    #00C4AE;
  --vermillion: #C1392B;
  --verm-lt:    #E84C3D;
  --ivory:      #F5F0E8;
  --ivory-dk:   #EDE5D4;
  --charcoal:   #2C2C2C;
  --muted:      #6B6B6B;
  --white:      #FFFFFF;

  --font-head:  'Cormorant Garamond', Georgia, serif;
  --font-body:  'Inter', system-ui, sans-serif;

  --nav-h:      72px;
  --section-px: clamp(1.5rem, 5vw, 5rem);
  --section-py: clamp(4rem, 8vw, 7rem);
  --radius:     4px;
  --shadow:     0 4px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 12px 48px rgba(0,0,0,.18);
  --transition: .3s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* =========================================================
   IZNIK ORNAMENT — reusable SVG border pattern (inline bg)
   ========================================================= */
.ornament-border {
  --orb-color: var(--cobalt);
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20'%3E%3Cellipse cx='30' cy='10' rx='10' ry='5' fill='none' stroke='%231A4F8A' stroke-width='1.5'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%2300A693'/%3E%3Ccircle cx='50' cy='10' r='3' fill='%2300A693'/%3E%3Ccircle cx='30' cy='3' r='2' fill='%23C1392B'/%3E%3Ccircle cx='30' cy='17' r='2' fill='%23C1392B'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

.ornament-border--light {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='20'%3E%3Cellipse cx='30' cy='10' rx='10' ry='5' fill='none' stroke='%23FFFFFF' stroke-width='1.5' opacity='.5'/%3E%3Ccircle cx='10' cy='10' r='3' fill='%2300C4AE' opacity='.7'/%3E%3Ccircle cx='50' cy='10' r='3' fill='%2300C4AE' opacity='.7'/%3E%3Ccircle cx='30' cy='3' r='2' fill='%23E84C3D' opacity='.7'/%3E%3Ccircle cx='30' cy='17' r='2' fill='%23E84C3D' opacity='.7'/%3E%3C/svg%3E");
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--section-px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  transition: color var(--transition);
}
.site-header.is-scrolled .site-logo { color: var(--cobalt); }

.logo-mark {
  width: 36px; height: 36px;
  background: var(--cobalt);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.site-header.is-scrolled .logo-mark { background: var(--cobalt); }
.logo-mark svg { width: 20px; height: 20px; fill: var(--white); }

/* Bundled logo image */
.logo-img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.3);
  transition: border-color var(--transition);
}
.site-header.is-scrolled .logo-img { border-color: rgba(26,79,138,.3); }

/* Primary nav */
.primary-nav { display: flex; align-items: center; gap: 2rem; }

.primary-nav a {
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: color var(--transition);
  position: relative;
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--turq-lt);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.primary-nav a:hover { color: var(--white); }
.primary-nav a:hover::after { transform: scaleX(1); }

.site-header.is-scrolled .primary-nav a { color: var(--charcoal); }
.site-header.is-scrolled .primary-nav a:hover { color: var(--cobalt); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.site-header.is-scrolled .nav-toggle span { background: var(--charcoal); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HOME SECTION (hero + about merged)
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--cobalt-dk);
  padding: calc(var(--nav-h) + clamp(3rem, 6vw, 5rem)) var(--section-px) clamp(4rem, 8vw, 7rem);
}

/* Two-column inner grid */
.home-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

/* Divider between hero and about text */
.home-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,.15);
  margin: 2.5rem 0;
}

/* About text on dark background */
.home-label { color: var(--turq-lt) !important; }
.home-label::before { background: var(--turq-lt) !important; }
.home-heading { color: var(--white) !important; }
.home-about-text p {
  color: rgba(255,255,255,.65);
  font-size: 1.05rem;
  margin-top: 1rem;
}
.home-about-text p:first-child { margin-top: 0; }
.home-signature {
  margin-top: 2rem;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: rgba(255,255,255,.55);
  font-style: italic;
}

/* Animated tile pattern background */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Crect width='80' height='80' fill='none'/%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%232E6FB5' stroke-width='1' opacity='.4'/%3E%3Ccircle cx='40' cy='40' r='20' fill='none' stroke='%2300A693' stroke-width='1' opacity='.3'/%3E%3Ccircle cx='40' cy='40' r='5' fill='%23C1392B' opacity='.5'/%3E%3Cpath d='M40 10 L50 30 L40 25 L30 30 Z' fill='%2300A693' opacity='.25'/%3E%3Cpath d='M40 70 L50 50 L40 55 L30 50 Z' fill='%2300A693' opacity='.25'/%3E%3Cpath d='M10 40 L30 50 L25 40 L30 30 Z' fill='%2300A693' opacity='.25'/%3E%3Cpath d='M70 40 L50 50 L55 40 L50 30 Z' fill='%2300A693' opacity='.25'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  animation: bgDrift 30s linear infinite;
  opacity: .7;
}

@keyframes bgDrift {
  from { background-position: 0 0; }
  to   { background-position: 80px 80px; }
}

/* Gradient overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(26,79,138,.55) 0%, rgba(15,48,96,.88) 100%);
}

.hero-content {
  /* left column — inherits from .home-inner grid */
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--turq-lt);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  display: block;
  width: 32px; height: 1px;
  background: var(--turq-lt);
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.01em;
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: normal;
  color: var(--white);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.75);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

/* Logo above gallery button */
.hero-logo {
  display: block;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 0 0 6px rgba(255,255,255,.06);
  margin: 0 0 1.75rem 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: var(--turquoise);
  color: var(--white);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .04em;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover {
  background: var(--turq-lt);
  transform: translateY(-2px);
}
.hero-cta svg { width: 18px; height: 18px; fill: currentColor; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.5);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; stroke: currentColor; fill: none; }

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* =========================================================
   ABOUT — styles now absorbed into .home-inner / .home-right
   ========================================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--turquoise);
}

.section-heading {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cobalt-dk);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-text p + p { margin-top: 1rem; }

.about-text p {
  color: var(--muted);
  font-size: 1.05rem;
}

.about-signature {
  margin-top: 2rem;
  font-family: var(--font-head);
  font-size: 1.8rem;
  color: var(--cobalt);
  font-style: italic;
}

/* Decorative tile mosaic graphic */
.about-visual {
  position: relative;
}

.tile-mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  aspect-ratio: 1;
  max-width: 440px;
  margin: 0 auto;
}

.tile-cell {
  border-radius: 2px;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tile-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.tile-cell:hover img { transform: scale(1.08); }

/* Fallback color tiles when no images */
.tile-cell:nth-child(1)  { background: var(--cobalt); }
.tile-cell:nth-child(2)  { background: var(--ivory-dk); }
.tile-cell:nth-child(3)  { background: var(--turquoise); }
.tile-cell:nth-child(4)  { background: var(--ivory-dk); }
.tile-cell:nth-child(5)  { background: var(--cobalt-lt); }
.tile-cell:nth-child(6)  { background: var(--ivory-dk); }
.tile-cell:nth-child(7)  { background: var(--turquoise); }
.tile-cell:nth-child(8)  { background: var(--ivory-dk); }
.tile-cell:nth-child(9)  { background: var(--vermillion); }

/* SVG pattern overlays for fallback tiles */
.tile-cell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='20' fill='none' stroke='rgba(255,255,255,0.2)' stroke-width='2'/%3E%3Ccircle cx='30' cy='30' r='10' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2'/%3E%3Ccircle cx='30' cy='30' r='3' fill='rgba(255,255,255,0.25)'/%3E%3Cpath d='M30 10 L33 27 L30 22 L27 27 Z' fill='rgba(255,255,255,0.15)'/%3E%3Cpath d='M30 50 L33 33 L30 38 L27 33 Z' fill='rgba(255,255,255,0.15)'/%3E%3Cpath d='M10 30 L27 33 L22 30 L27 27 Z' fill='rgba(255,255,255,0.15)'/%3E%3Cpath d='M50 30 L33 33 L38 30 L33 27 Z' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
  background-size: cover;
}

/* Corner ornament */
.about-visual::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 80px; height: 80px;
  border-top: 3px solid var(--turquoise);
  border-left: 3px solid var(--turquoise);
  border-radius: 2px 0 0 0;
}
.about-visual::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: 80px; height: 80px;
  border-bottom: 3px solid var(--vermillion);
  border-right: 3px solid var(--vermillion);
  border-radius: 0 0 2px 0;
}

/* =========================================================
   GALLERY SECTION
   ========================================================= */
.gallery {
  padding: var(--section-py) var(--section-px);
  background: var(--white);
}

.gallery-header {
  max-width: 1280px;
  margin: 0 auto 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.gallery-header-text { max-width: 480px; }

.gallery-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: .45rem 1.1rem;
  border: 1.5px solid var(--ivory-dk);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--white);
}

/* Masonry grid */
.gallery-grid {
  max-width: 1280px;
  margin: 0 auto;
  columns: 4;
  column-gap: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
}

.gallery-item:hover img { transform: scale(1.05); }

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,48,96,.8) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
}

.gallery-item:hover .gallery-item-overlay { opacity: 1; }

.gallery-item-caption {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-style: italic;
}

/* Placeholder tiles for demo (no real images) */
.gallery-placeholder {
  aspect-ratio: var(--ar, 1);
  border-radius: var(--radius);
  background: var(--bg, var(--cobalt));
  position: relative;
  overflow: hidden;
}
.gallery-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(255,255,255,.15)' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(255,255,255,.12)' stroke-width='2'/%3E%3Ccircle cx='50' cy='50' r='8' fill='rgba(255,255,255,.2)'/%3E%3Cpath d='M50 10 L55 35 L50 28 L45 35Z' fill='rgba(255,255,255,.15)'/%3E%3Cpath d='M50 90 L55 65 L50 72 L45 65Z' fill='rgba(255,255,255,.15)'/%3E%3Cpath d='M10 50 L35 55 L28 50 L35 45Z' fill='rgba(255,255,255,.15)'/%3E%3Cpath d='M90 50 L65 55 L72 50 L65 45Z' fill='rgba(255,255,255,.15)'/%3E%3C/svg%3E");
  background-size: 50%;
  background-position: center;
  background-repeat: no-repeat;
}
.gallery-placeholder-label {
  position: absolute;
  bottom: 1rem; left: 1rem; right: 1rem;
  color: rgba(255,255,255,.7);
  font-size: .78rem;
  font-family: var(--font-head);
  font-style: italic;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.92);
  place-items: center;
  padding: 2rem;
}
.lightbox.is-open { display: grid; }
.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lightbox-close {
  position: fixed;
  top: 1.5rem; right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}
.lightbox-close:hover { color: var(--turq-lt); }
.lightbox-caption {
  position: fixed;
  bottom: 2rem;
  left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.7);
  font-family: var(--font-head);
  font-style: italic;
  font-size: 1.1rem;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact {
  background: var(--cobalt-dk);
  padding: var(--section-py) var(--section-px);
  position: relative;
  overflow: hidden;
}

/* Background pattern */
.contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='40' cy='40' r='30' fill='none' stroke='%232E6FB5' stroke-width='1' opacity='.2'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}

.contact-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contact .section-label { justify-content: center; color: var(--turq-lt); }
.contact .section-label::before { background: var(--turq-lt); }

.contact .section-heading { color: var(--white); margin-bottom: .75rem; }

.contact-intro {
  color: rgba(255,255,255,.65);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Instagram block */
.contact-instagram {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  padding: .875rem 1.75rem;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 999px;
  color: var(--white);
  transition: border-color var(--transition), background var(--transition);
  margin-bottom: 2rem;
}
.contact-instagram:hover {
  border-color: var(--turq-lt);
  background: rgba(0,196,174,.1);
}
.contact-ig-icon {
  width: 28px; height: 28px;
  flex-shrink: 0;
}
.contact-ig-handle {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .03em;
}

/* Email image */
.contact-email {
  display: flex;
  justify-content: center;
  margin-top: .25rem;
}
.contact-email-img {
  height: 28px;
  width: auto;
  opacity: .85;
  transition: opacity var(--transition);
}
.contact-email-img:hover { opacity: 1; }

.contact-form {
  display: grid;
  gap: 1rem;
  text-align: left;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-field { display: flex; flex-direction: column; gap: .4rem; }

.form-field label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.form-field input,
.form-field textarea,
.form-field select {
  padding: .85rem 1rem;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--transition), background var(--transition);
  width: 100%;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(255,255,255,.3);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--turq-lt);
  background: rgba(255,255,255,.11);
}

.form-field textarea { resize: vertical; min-height: 140px; }

.form-submit {
  padding: 1rem 2.5rem;
  background: var(--vermillion);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .05em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  justify-self: center;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.form-submit:hover {
  background: var(--verm-lt);
  transform: translateY(-2px);
}
.form-submit svg { width: 18px; height: 18px; fill: currentColor; }

/* Social links */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.social-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-link svg { width: 18px; height: 18px; fill: currentColor; }
.social-link:hover {
  border-color: var(--turq-lt);
  color: var(--turq-lt);
  background: rgba(0,166,147,.1);
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: #09203F;
  padding: 2rem var(--section-px);
  text-align: center;
}

.site-footer p {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
}
.site-footer a {
  color: var(--turq-lt);
  transition: color var(--transition);
}
.site-footer a:hover { color: var(--white); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .gallery-grid { columns: 3; }
  .home-inner   { gap: 3rem; }
}

@media (max-width: 768px) {
  .home-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-visual { max-width: 340px; margin: 0 auto; }

  .gallery-grid { columns: 2; }

  .gallery-header { flex-direction: column; align-items: flex-start; }

  .form-row { grid-template-columns: 1fr; }

  .primary-nav {
    display: none;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: rgba(15,48,96,.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
  }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { font-size: 1.2rem; color: var(--white) !important; }

  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
  .hero-title   { font-size: clamp(2.2rem, 10vw, 3rem); }
  .tile-mosaic  { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================================
   UTILITY
   ========================================================= */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.wp-post-image {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* WordPress alignment classes */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
