/* ============================================================
   Raff Karva Photography — custom.css
   raffkarva.com
   ============================================================ */

/* ── @FONT-FACE ───────────────────────────────────────────── */

@font-face {
    font-family: "felixtitling";
    font-display: swap;
    src: url("/assets/fonts/felixtitling/felixtitling.ttf");
}

/* ── CSS RESET ────────────────────────────────────────────── */

html {
    box-sizing: border-box;
    overflow-y: scroll;
    font-family: sans-serif;
    line-height: 1.15;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    height: 100%;
}

*, *::before, *::after { box-sizing: inherit; }

[tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }

/* ── BODY ─────────────────────────────────────────────────── */

body {
    margin: 0;
    font-family: "felixtitling", sans-serif;
    font-weight: 200;
    color: #ffffff;
    background-color: #16110e;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    text-align: left;
    padding-top: 200px;
}

/* Mobile */
@media screen and (max-width: 800px) {
    body {
        padding-top: 150px;
    }
}

/* ── TYPOGRAPHY ───────────────────────────────────────────── */

h1, .h1, h2, .h2, h3, .h3,
h4, .h4, h5, .h5, h6, .h6 {
    font-family: "felixtitling", sans-serif;
    font-weight: 200;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 0;
}

h1, .h1 { font-size: 40px;  line-height: 1.2; }
h2, .h2 { font-size: 4rem;  line-height: 1.1; }
h3, .h3 { font-size: 28px;  line-height: 1.5; }
h4, .h4 { font-size: 1.3rem; line-height: 1.5; font-weight: 400; }
h5, .h5 { font-size: 20px;  line-height: 1.5; }
h6, .h6 { font-size: 18px;  line-height: 1.5; }

p { margin-top: 0; margin-bottom: 0; }
figure { margin: 0; }
img { vertical-align: middle; border-style: none; }
svg:not(:root) { overflow: hidden; }

/* Visually hidden — used for SEO h1 on every page */
.visually-hidden {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── LINKS ────────────────────────────────────────────────── */

a {
    color: #ffffff;
    text-decoration: none;
    background-color: transparent;
    transition: color 0.3s ease-in-out;
}

a:hover { color: #b0a090; text-decoration: underline; }
a:not([href]):not([tabindex]) { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):hover { color: inherit; text-decoration: none; }
a:not([href]):not([tabindex]):focus { outline: 0; }

/* ── LISTS ────────────────────────────────────────────────── */

ol, ul, dl { margin: 0; }
ol ol, ul ul, ol ul, ul ol { margin-bottom: 0; }
ol { padding: 0; }
ol li { list-style-position: inside; }

/* ── MISC ELEMENTS ────────────────────────────────────────── */

b, strong { font-weight: 200; }
small { font-size: 80%; }
sub, sup { position: relative; font-size: 75%; line-height: 0; vertical-align: baseline; }
sup { top: -0.5em; }
sub { bottom: -0.25em; }
abbr[title] { text-decoration: underline dotted; cursor: help; border-bottom: 0; }
address { font-style: normal; line-height: inherit; }
blockquote { margin: 0 0 1rem; }
dfn { font-style: italic; }
pre, code, kbd, samp { font-family: monospace, monospace; font-size: 1em; }
pre {
    margin-top: 0;
    margin-bottom: 1rem;
    overflow: auto;
    background-color: #1a1410;
    border: 1px solid #3a2e26;
    padding: 0.5rem 1rem;
}

/* ── TABLES ───────────────────────────────────────────────── */

table { border-collapse: collapse; }
caption { padding-top: 0.75rem; padding-bottom: 0.75rem; color: #7a7c7b; text-align: left; caption-side: bottom; }
th { text-align: left; }

/* ── FORMS ────────────────────────────────────────────────── */

label { display: inline-block; margin-bottom: 0.5rem; }

button {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

button:focus { outline: 1px dotted; outline: 5px auto -webkit-focus-ring-color; }

input, button, select, optgroup, textarea {
    margin: 0;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button, input { overflow: visible; }
button, select { text-transform: none; }
button, html [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button::-moz-focus-inner, [type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { padding: 0; border-style: none; }
input[type="radio"], input[type="checkbox"] { box-sizing: border-box; padding: 0; }
input[type="date"], input[type="time"],
input[type="datetime-local"], input[type="month"] { -webkit-appearance: listbox; }
textarea { overflow: auto; resize: vertical; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
legend { display: block; width: 100%; max-width: 100%; padding: 0; margin-bottom: 0.5rem; font-size: 1.5rem; line-height: inherit; color: inherit; white-space: normal; }
progress { vertical-align: baseline; }
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button { height: auto; }
[type="search"] { outline-offset: -2px; -webkit-appearance: none; }
[type="search"]::-webkit-search-cancel-button,
[type="search"]::-webkit-search-decoration { -webkit-appearance: none; }
::-webkit-file-upload-button { font: inherit; -webkit-appearance: button; }
output { display: inline-block; }
summary { display: list-item; }

a, area, button, [role="button"], input,
label, select, summary, textarea { touch-action: manipulation; }

::-webkit-input-placeholder, ::-moz-placeholder,
:-ms-input-placeholder, :-moz-placeholder { color: #888; }

::-moz-selection { background: #3a2e26; color: #ffffff; }
::selection     { background: #3a2e26; color: #ffffff; }

/* ── LAYOUT ───────────────────────────────────────────────── */

.inner {
    display: flex;
    flex-wrap: wrap;
    position: relative;
}

.wv-boxed > .inner {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 61rem;
}

.left   { text-align: left; }
.center { text-align: center; }
.right  { text-align: right; }

/* ── SITE HEADER ──────────────────────────────────────────── */

#site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10001;
    background: #16110e;
}

#site-header > .inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ── LOGO ─────────────────────────────────────────────────── */

#header-logo { 
    text-align: center;
    order: 1;
    margin: 0;
}

#header-logo img { 
    width: 200px;
    display: block;
}

/* ── HAMBURGER WRAPPER ────────────────────────────────────── */

#hamburger-wrapper {
    position: absolute;
    right: 1rem;
    align-self: center;
    flex-grow: 0;
    overflow: visible;
    order: 3;
}

#hamburger-wrapper > .inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: visible;
    position: relative;
}

/* ── HEADER SPACER ────────────────────────────────────────── */

#header-spacer { 
    display: none;
}

#header-spacer .space { height: 20px; }

/* ── NAVIGATION ───────────────────────────────────────────── */

#main-nav { 
    flex: none;
    order: 2;
    width: 100%;
}

#main-nav .menu-level-0 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

#main-nav .menu-level-0 > li { 
    display: inline-block;
    margin: 0;
}

#main-nav .menu-level-0 > li:not(:first-child) { 
    margin: 0;
}

#main-nav a {
    display: inline-block;
    text-decoration: none;
    text-transform: lowercase;
    font-weight: 200;
    font-family: "felixtitling", sans-serif;
    letter-spacing: 2px;
    font-size: 1rem;
    line-height: 1;
    color: #ffffff;
    position: relative;
    padding: 1rem 0;
    transition: color 0.3s ease-in-out;
}

/* Underline slide-up on hover / active */
#main-nav a::before {
    content: '';
    position: absolute;
    height: 1px;
    width: 100%;
    bottom: 0;
    left: 0;
    background: #ffffff;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#main-nav .menu-level-0 > li:hover > a::before,
#main-nav a.active::before {
    opacity: 1;
    transform: translateY(0);
}

#main-nav .menu-level-0 > li:hover > a,
#main-nav a.active {
    text-decoration: none;
    color: #ffffff;
}

/* ── HAMBURGER BUTTON ─────────────────────────────────────── */

#hamburger {
    background: transparent;
    border: none;
    padding: 0;
    width: 40px;
    height: 40px;
    cursor: pointer;
    position: relative;
}

#hamburger span {
    position: absolute;
    width: 24px;
    height: 3px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
    left: 50%;
    margin-left: -12px;
}

#hamburger span:nth-child(1) { top: 8px; }
#hamburger span:nth-child(2) { top: 18px; }
#hamburger span:nth-child(3) { top: 28px; }

#hamburger.active span:nth-child(1) { top: 18px; transform: rotate(45deg); }
#hamburger.active span:nth-child(2) { opacity: 0; }
#hamburger.active span:nth-child(3) { top: 18px; transform: rotate(-45deg); }

/* ── SOCIAL LINKS ─────────────────────────────────────────── */

#social-links {
    text-align: center;
    padding: 40px 20px 0;
}

#social-links a {
    margin: 0 15px;
    display: inline-block;
    text-decoration: none;
    vertical-align: middle;
    transition: opacity 0.3s ease;
}

#social-links a:hover { opacity: 0.6; text-decoration: none; }

/* ── FOOTER ───────────────────────────────────────────────── */

#site-footer { background: #16110e; }

#site-footer > .inner {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem;
}

#footer-text { width: 100%; text-align: center; color: #ffffff9e;}

#footer-text p {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: #ffffff9e;
}

#footer-text a { color: #ffffffc4; text-decoration: underline; }
#footer-text a:hover { color: #b0a090; }


/* ── CONTACT FORM ─────────────────────────────────────────── */

.contact-form-container {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

#contactForm {
    width: 100%;
    max-width: 600px;
    padding: 30px;
}

.form-group { margin-bottom: 20px; }

#contactForm input[type="text"],
#contactForm input[type="email"],
#contactForm textarea {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder { color: rgba(255,255,255,0.6); }

#contactForm input:focus,
#contactForm textarea:focus {
    outline: none;
    background-color: rgba(0, 0, 0, 0.5);
    border-color: rgba(255,255,255,0.9);
}

#contactForm button[type="submit"] {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    font-family: "Montserrat", sans-serif;
    border: 1px solid #ffffff;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#contactForm button[type="submit"]:hover { background-color: rgba(255,255,255,0.15); }

/* Honeypot — must be invisible */
#contactForm input[name="website"] { display: none; }

#formMessage {
    display: none;
    margin-bottom: 20px;
    padding: 15px;
    text-align: center;
    border-radius: 8px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
}

#formMessage.success {
    background-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
    border: 1px solid #4caf50;
}

#formMessage.error {
    background-color: rgba(244, 67, 54, 0.3);
    color: #f44336;
    border: 1px solid #f44336;
}

/* ── GALLERY IFRAME ───────────────────────────────────────── */

#gallery-frame iframe {
    width: 100%;
    height: 100%;
    min-height: 800px;
    border: none;
    display: block;
}

/* ── PRIVACY POLICY ───────────────────────────────────────── */

#policy-heading {
    font-size: 20px;
    font-family: "Montserrat", sans-serif;
    text-transform: none;
    color: #ffffff;
    margin-bottom: 1rem;
}

#policy-spacer .space { height: 1rem; }

#policy-text {
    font-family: "Montserrat", sans-serif;
    text-transform: none;
    font-size: 14px;
    line-height: 1.8;
    color: #cccccc;
}

#policy-text p { font-family: "Montserrat", sans-serif; text-align: left; }
#policy-text ul { padding-left: 1.5rem; margin-bottom: 1rem; }
#policy-text ul li { list-style: disc; padding: 0.25rem 0; }
#policy-text a { color: #ffffff; text-decoration: underline; }
#policy-text a:hover { color: #b0a090; }

/* ── RESPONSIVE: ≤575px ───────────────────────────────────── */

@media screen and (max-width: 575px) {
    #header-spacer .space { height: 16px; }

    h1, .h1 { font-size: 16px; }
    h2, .h2 { font-size: 1.3rem; }
    h3, .h3 { font-size: 16.8px; }
    h4, .h4 { font-size: 0.91rem; }
    h5, .h5 { font-size: 14px; }

    #contactForm { padding: 20px; }

    #contactForm input[type="text"],
    #contactForm input[type="email"],
    #contactForm textarea,
    #contactForm button[type="submit"] {
        padding: 12px;
        font-size: 14px;
    }
}

/* ── RESPONSIVE: MOBILE NAV ≤975px ───────────────────────── */

@media screen and (max-width: 975px) {
    #site-header > .inner { justify-content: center; }
    #hamburger-wrapper > .inner { justify-content: flex-end; }

    #main-nav {
        display: none;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        height: auto;
        max-width: 95vw;
        min-height: 60vh;
        max-height: 80vh;
        background: #16110e;
        z-index: 9999;
        padding: 20px;
        overflow-y: auto;
        pointer-events: none;
        border-radius: 20px;
        border: 2px solid #ffffff;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    #main-nav.menu-open {
        display: flex;
        pointer-events: auto;
    }

    #main-nav .menu-level-0 {
        flex-direction: column;
        align-items: center;
        padding: 0;
    }

    #main-nav .menu-level-0 > li { display: block; margin: 0; }

    #main-nav a {
        color: #ffffff;
        display: inline-block;
        padding: 12px 0;
    }

    #main-nav a:hover { color: #b0a090; text-decoration: none; }

    #hamburger {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-40px);
        z-index: 10000;
    }

    h1, .h1 { font-size: 28px; }
    h2, .h2 { font-size: 2rem; }
    h3, .h3 { font-size: 23.8px; }
    h4, .h4 { font-size: 1.105rem; }
    h5, .h5 { font-size: 17px; }
}

/* ── RESPONSIVE: DESKTOP ≥976px ──────────────────────────── */

@media screen and (min-width: 976px) {
    #main-nav {
        display: block;
        position: static;
        background: transparent;
        flex: 1 0 auto;
        max-height: none;
        overflow: visible;
        pointer-events: auto;
        border: none;
        border-radius: 0;
    }

    #main-nav .menu-level-0 { flex-direction: row; flex-wrap: nowrap; }
    #main-nav a { color: inherit; }
    #hamburger { display: none; }
}

/* ── KEYFRAMES ────────────────────────────────────────────── */

@keyframes fadeIn    { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
